CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Solved How can I get private/protected variables?

    ScriptAPI
    4
    4
    103
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      I'd like to get some private/protected variables without getter(from Java classes)

      C 1 Reply Last reply Reply Quote 0
      • Senk Ju
        Senk Ju Admin last edited by

        You need to use reflection. Check out this thread on StackOverflow.

        1 Reply Last reply Reply Quote 0
        • icewormy3
          icewormy3 last edited by

          sometimes u can use try and catch statements to access private/protected variables

          1 Reply Last reply Reply Quote 0
          • Senk Ju
            Senk Ju Admin last edited by

            You need to use reflection. Check out this thread on StackOverflow.

            1 Reply Last reply Reply Quote 0
            • C
              commandblock2 @Guest last edited by

              Btw the fields/methods of vanilla minecraft(not for forge and LB) are obfuscated, if you want to access to these you will have to use searge name to access it, you can find it in .minecraft/LiquidBounce-1.8/mcp-stable22srg(I don't remember the name exactly).

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              About
              • Terms of Service
              • Privacy Policy
              • Status
              • Contact Us
              Downloads
              • Releases
              • Source code
              • License
              Docs
              • Tutorials
              • CustomHUD
              • AutoSettings
              • ScriptAPI
              Community
              • Forum
              • Guilded
              • YouTube
              • Twitter
              • D.Tube