Search in sources :

Example 6 with IChunkProvider

use of net.minecraft.world.chunk.IChunkProvider 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

IChunkProvider (net.minecraft.world.chunk.IChunkProvider)6 World (net.minecraft.world.World)3 Method (java.lang.reflect.Method)2 ArrayList (java.util.ArrayList)2 ChunkPos (net.minecraft.util.math.ChunkPos)2 WorldServer (net.minecraft.world.WorldServer)2 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 Random (java.util.Random)1 Block (net.minecraft.block.Block)1 BlockPos (net.minecraft.util.math.BlockPos)1 WorldType (net.minecraft.world.WorldType)1 Biome (net.minecraft.world.biome.Biome)1 Chunk (net.minecraft.world.chunk.Chunk)1 IChunkGenerator (net.minecraft.world.chunk.IChunkGenerator)1 IChunkLoader (net.minecraft.world.chunk.storage.IChunkLoader)1 WorldGenDungeons (net.minecraft.world.gen.feature.WorldGenDungeons)1 WorldGenLakes (net.minecraft.world.gen.feature.WorldGenLakes)1 PopulateChunkEvent (net.minecraftforge.event.terraingen.PopulateChunkEvent)1