I am trying to work with a MinecraftForge method in a Bukkit plugin.
Here is my code so far:
NetworkManager ic2 = new ic2.core.IC2().network;
DimensionManager dmm = new net.minecraftforge.common.DimensionManager();
T worlds = dmm.getWorlds(); // What Data Type?
The problem is that the getWorlds()
method seems to be a data type of in[]
which eclipse doesn't recognise, so now I am stuck because I have no idea what datatype to make the worlds variable.
This is the getWorlds()
method in the version of Forge I am using
public static in[] getWorlds() {
return (in[]) worlds.values().toArray(new in[worlds.size()]);
}
Did some further digging and found this in the forge version I am using.
import in;
and then there is an "in
" class in the class list; But it doesn't appear in the list in eclipse; It's the same jar as the one I decompiled.