所以有这个类包含一个 ServerData 字段:
public class Minecraft implements IPlayerUsage{
// others
private ServerData currentServerData;
// others
public void setServerData(ServerData par1ServerData)
{
this.currentServerData = par1ServerData;
}
}
我怎样才能访问这个:mc.currentServerData.serverIP
形成另一个带反射的类?