Search in sources :

Example 1 with ChunkProviderEmpty

use of com.builtbroken.mc.core.content.world.chunks.ChunkProviderEmpty 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);
}
Also used : WorldType(net.minecraft.world.WorldType) IChunkProvider(net.minecraft.world.chunk.IChunkProvider) ChunkProviderEmpty(com.builtbroken.mc.core.content.world.chunks.ChunkProviderEmpty) ChunkProviderStone(com.builtbroken.mc.core.content.world.chunks.ChunkProviderStone) World(net.minecraft.world.World) ChunkProviderChess(com.builtbroken.mc.core.content.world.chunks.ChunkProviderChess)

Aggregations

ChunkProviderChess (com.builtbroken.mc.core.content.world.chunks.ChunkProviderChess)1 ChunkProviderEmpty (com.builtbroken.mc.core.content.world.chunks.ChunkProviderEmpty)1 ChunkProviderStone (com.builtbroken.mc.core.content.world.chunks.ChunkProviderStone)1 World (net.minecraft.world.World)1 WorldType (net.minecraft.world.WorldType)1 IChunkProvider (net.minecraft.world.chunk.IChunkProvider)1