public class ChunkWatchEvent extends Event
Event
as its parameter, the method will
receive every child event of this class.chunk
contains the ChunkCoordIntPair of the Chunk this event is affecting.player
contains the EntityPlayer that is involved with this chunk being watched. MinecraftForge#EVENT_BUS
.Modifier and Type | Class and Description |
---|---|
static class |
ChunkWatchEvent.UnWatch
ChunkWatchEvent.UnWatch is fired when an EntityPlayer stops watching a chunk.
|
static class |
ChunkWatchEvent.Watch
ChunkWatchEvent.Watch is fired when an EntityPlayer begins watching a chunk.
|
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
ChunkCoordIntPair |
chunk |
EntityPlayerMP |
player |
Constructor and Description |
---|
ChunkWatchEvent(ChunkCoordIntPair chunk,
EntityPlayerMP player) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final ChunkCoordIntPair chunk
public final EntityPlayerMP player
public ChunkWatchEvent(ChunkCoordIntPair chunk, EntityPlayerMP player)