Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.craftesys.craftesys.generation;
- import net.minecraft.world.WorldType;
- import net.minecraft.world.gen.layer.GenLayer;
- import net.minecraft.world.gen.layer.GenLayerBiome;
- import net.minecraft.world.gen.layer.GenLayerBiomeEdge;
- import net.minecraft.world.gen.layer.GenLayerZoom;
- public class WorldTypegiant extends WorldType{
- public WorldTypegiant(int id, String name) {
- super(name);
- }
- /**
- * Creates the GenLayerBiome used for generating the world
- *
- * @param worldSeed The world seed
- * @param parentLayer The parent layer to feed into any layer you return
- * @return A GenLayer that will return ints representing the Biomes to be generated, see GenLayerBiome
- */
- @Override
- public GenLayer getBiomeLayer(long worldSeed, GenLayer parentLayer)
- {
- GenLayer ret = new GiantGenLayerBiome(200L, parentLayer, this);
- ret = GenLayerZoom.magnify(1000L, ret, 2);
- ret = new GenLayerBiomeEdge(1000L, ret);
- return ret;
- }
- }
Add Comment
Please, Sign In to add comment