0

So there is this class that holds a ServerData field:

public class Minecraft implements IPlayerUsage{

    // others

    private ServerData currentServerData;

    // others

    public void setServerData(ServerData par1ServerData)
    {
        this.currentServerData = par1ServerData;
    }
}

How can i accsess to this : mc.currentServerData.serverIP form another class w/ reflection?

araknoid
  • 3,065
  • 5
  • 33
  • 35
  • see here - http://stackoverflow.com/questions/1196192/how-do-i-read-a-private-field-in-java – radai Aug 27 '13 at 12:42

1 Answers1

0

There is a Reflection API tutorial at Oracle that might be interesting for you.

Qben
  • 2,617
  • 2
  • 24
  • 36