ForgePatch/common/net/minecraftforge/event/world/ChunkDataEvent.java

37 lines
754 B
Java
Raw Normal View History

package net.minecraftforge.event.world;
2012-12-13 05:58:35 +00:00
import net.minecraft.world.chunk.Chunk;
import net.minecraft.nbt.NBTTagCompound;
public class ChunkDataEvent extends ChunkEvent
{
private final NBTTagCompound data;
public ChunkDataEvent(Chunk chunk, NBTTagCompound data)
{
super(chunk);
this.data = data;
}
public NBTTagCompound getData()
{
return data;
}
public static class Load extends ChunkDataEvent
{
public Load(Chunk chunk, NBTTagCompound data)
{
super(chunk, data);
}
}
public static class Save extends ChunkDataEvent
{
public Save(Chunk chunk, NBTTagCompound data)
{
super(chunk, data);
}
}
}