    001package net.minecraftforge.event.terraingen;
    002
    003import net.minecraft.world.gen.layer.GenLayer;
    004import net.minecraft.world.WorldType;
    005import net.minecraftforge.event.Event;
    006
    007public class WorldTypeEvent extends Event
    008{
    009    public final WorldType worldType;
    010
    011    public WorldTypeEvent(WorldType worldType)
    012    {
    013        this.worldType = worldType;
    014    }
    015
    016    public static class BiomeSize extends WorldTypeEvent
    017    {
    018        public final byte originalSize;
    019        public byte newSize;
    020
    021        public BiomeSize(WorldType worldType, byte original)
    022        {
    023            super(worldType);
    024            originalSize = original;
    025            newSize = original;
    026        }
    027    }
    028
    029    public static class InitBiomeGens extends WorldTypeEvent
    030    {
    031        public final long seed;
    032        public final GenLayer[] originalBiomeGens;
    033        public GenLayer[] newBiomeGens;
    034
    035        public InitBiomeGens(WorldType worldType, long seed, GenLayer[] original)
    036        {
    037            super(worldType);
    038            this.seed = seed;
    039            originalBiomeGens = original;
    040            newBiomeGens = original.clone();
    041        }
    042    }
    043}