Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. How can I get private/protected variables?

How can I get private/protected variables?

Scheduled Pinned Locked Moved Solved ScriptAPI
4 Posts 4 Posters 370 Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

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

    C 1 Reply Last reply
    0
    • Senk JuS Offline
      Senk JuS Offline
      Senk Ju
      Admin
      wrote on last edited by
      #3

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

      1 Reply Last reply
      0
      • icewormy3I Offline
        icewormy3I Offline
        icewormy3
        wrote on last edited by
        #2

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

        1 Reply Last reply
        0
        • Senk JuS Offline
          Senk JuS Offline
          Senk Ju
          Admin
          wrote on last edited by
          #3

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

          1 Reply Last reply
          0
          • ? A Former User

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

            C Offline
            C Offline
            commandblock2
            wrote on last edited by
            #4

            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
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            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
            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups