public class ChunkWatchEvent extends Event
Event as its parameter, the method will
receive every child event of this class.pos contains the ChunkPos of the Chunk this event is affecting.world contains the World of the Chunk this event is affecting.player contains the EntityPlayer that is involved with this chunk being watched. player's world may not be the same as the world of the chunk
when the player is teleporting to another dimension.MinecraftForge#EVENT_BUS.| 修飾子とタイプ | クラスと説明 |
|---|---|
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| コンストラクタと説明 |
|---|
ChunkWatchEvent(ServerPlayerEntity player,
ChunkPos pos,
ServerWorld world) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ServerPlayerEntity |
getPlayer() |
ChunkPos |
getPos() |
ServerWorld |
getWorld() |
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic ChunkWatchEvent(ServerPlayerEntity player, ChunkPos pos, ServerWorld world)
public ServerPlayerEntity getPlayer()
public ChunkPos getPos()
public ServerWorld getWorld()