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;
|
|
|
|
import net.minecraft.world.World;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
|
|
|
public class ChunkEvent extends WorldEvent
|
|
|
|
{
|
|
|
|
private final Chunk chunk;
|
|
|
|
|
|
|
|
public ChunkEvent(Chunk chunk)
|
|
|
|
{
|
|
|
|
super(chunk.worldObj);
|
|
|
|
this.chunk = chunk;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Chunk getChunk()
|
|
|
|
{
|
|
|
|
return chunk;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class Load extends ChunkEvent
|
|
|
|
{
|
|
|
|
public Load(Chunk chunk)
|
|
|
|
{
|
|
|
|
super(chunk);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class Unload extends ChunkEvent
|
|
|
|
{
|
|
|
|
public Unload(Chunk chunk)
|
|
|
|
{
|
|
|
|
super(chunk);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|