    001    package net.minecraftforge.event.world;
    002
    003    import net.minecraft.src.Chunk;
    004    import net.minecraft.src.NBTTagCompound;
    005    import net.minecraft.src.World;
    006
    007    public class ChunkEvent extends WorldEvent
    008    {
    009        private final Chunk chunk;
    010
    011        public ChunkEvent(Chunk chunk)
    012        {
    013            super(chunk.worldObj);
    014            this.chunk = chunk;
    015        }
    016
    017        public Chunk getChunk()
    018        {
    019            return chunk;
    020        }
    021
    022        public static class Load extends ChunkEvent
    023        {
    024            public Load(Chunk chunk)
    025            {
    026                super(chunk);
    027            }
    028        }
    029
    030        public static class Unload extends ChunkEvent
    031        {
    032            public Unload(Chunk chunk)
    033            {
    034                super(chunk);
    035            }
    036        }
    037    }