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.
This event is fired when a chunk is removed from the watched chunks of an EntityPlayer in PlayerChunkMapEntry.removePlayer(EntityPlayerMP) . |
static class |
ChunkWatchEvent.Watch
ChunkWatchEvent.Watch is fired when an EntityPlayer begins watching a chunk.
This event is fired when a chunk is added to the watched chunks of an EntityPlayer in PlayerChunkMapEntry.addPlayer(EntityPlayerMP) and PlayerChunkMapEntry.sendToPlayers() . |
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()