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
Constructor and Description |
---|
ChunkWatchEvent(ChunkPos chunk,
EntityPlayerMP player) |
Modifier and Type | Method and Description |
---|---|
ChunkPos |
getChunk() |
EntityPlayerMP |
getPlayer() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ChunkWatchEvent(ChunkPos chunk, EntityPlayerMP player)
public ChunkPos getChunk()
public EntityPlayerMP getPlayer()