2012-08-05 10:20:07 +00:00
|
|
|
package net.minecraftforge.event.world;
|
|
|
|
|
2012-12-13 05:58:35 +00:00
|
|
|
import net.minecraft.world.chunk.Chunk;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|