Search in sources :

Example 6 with WorldType

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);
}
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

WorldType (net.minecraft.world.WorldType)6 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 ArrayList (java.util.ArrayList)1 List (java.util.List)1 ScrollableButtonList (logictechcorp.libraryex.client.gui.ScrollableButtonList)1 CreateWorldScreen (net.minecraft.client.gui.screen.CreateWorldScreen)1 Screen (net.minecraft.client.gui.screen.Screen)1 Button (net.minecraft.client.gui.widget.button.Button)1 I18n (net.minecraft.client.resources.I18n)1 TranslationTextComponent (net.minecraft.util.text.TranslationTextComponent)1 World (net.minecraft.world.World)1 WorldProvider (net.minecraft.world.WorldProvider)1 WorldServer (net.minecraft.world.WorldServer)1 BiomeProvider (net.minecraft.world.biome.BiomeProvider)1 IChunkProvider (net.minecraft.world.chunk.IChunkProvider)1 IChunkGenerator (net.minecraft.world.gen.IChunkGenerator)1 IMixinWorldProvider (org.spongepowered.common.interfaces.world.IMixinWorldProvider)1 IMixinWorldServer (org.spongepowered.common.interfaces.world.IMixinWorldServer)1