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