use of net.minecraft.world.WorldType in project Engine by VoltzEngine-Project.
the class DevWorldLoader method preInit.
@Override
public void preInit() {
emptyWorldGenerator = new WorldType("voidTestWorld") {
@Override
public IChunkProvider getChunkGenerator(World world, String generatorOptions) {
return new ChunkProviderEmpty(world);
}
@Override
public boolean getCanBeCreated() {
return true;
}
};
stoneWorldGenerator = new WorldType("stoneTestWorld") {
@Override
public IChunkProvider getChunkGenerator(World world, String generatorOptions) {
return new ChunkProviderStone(world);
}
@Override
public boolean getCanBeCreated() {
return true;
}
};
stoneWorldGenerator = new WorldType("chessTestWorld") {
@Override
public IChunkProvider getChunkGenerator(World world, String generatorOptions) {
return new ChunkProviderChess(world);
}
@Override
public boolean getCanBeCreated() {
return true;
}
};
MinecraftForge.EVENT_BUS.register(this);
}
Aggregations