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

38 lines
701 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;
import net.minecraft.world.World;
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);
}
}
}