use of net.minecraft.world.chunk.IChunkProvider in project MineFactoryReloaded by powercrystals.
the class WorldServerProxy method createChunkProvider.
@Override
protected /**
* Creates the chunk provider for this world. Called in the constructor. Retrieves provider from worldProvider?
*/
IChunkProvider createChunkProvider() {
ArrayList<String> q = new ArrayList<String>();
q.add("createChunkProvider");
q.addAll(Arrays.asList(ObfuscationReflectionHelper.remapFieldNames("net.minecraft.world.World", new String[] { "func_72970_h" })));
Method callable = ReflectionHelper.findMethod(World.class, this.proxiedWorld, q.toArray(new String[q.size()]));
try {
return (IChunkProvider) callable.invoke(this.proxiedWorld);
} catch (Throwable e) {
return null;
}
}
use of net.minecraft.world.chunk.IChunkProvider in project MineFactoryReloaded by powercrystals.
the class WorldProxy method createChunkProvider.
@Override
protected /**
* Creates the chunk provider for this world. Called in the constructor. Retrieves provider from worldProvider?
*/
IChunkProvider createChunkProvider() {
ArrayList<String> q = new ArrayList<String>();
q.add("createChunkProvider");
q.addAll(Arrays.asList(ObfuscationReflectionHelper.remapFieldNames("net.minecraft.world.World", new String[] { "func_72970_h" })));
Method callable = ReflectionHelper.findMethod(World.class, this.proxiedWorld, q.toArray(new String[q.size()]));
try {
return (IChunkProvider) callable.invoke(this.proxiedWorld);
} catch (Throwable e) {
return null;
}
}
Aggregations