类 ChunkWatchEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.ChunkWatchEvent
public class ChunkWatchEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired whenever a chunk has a watch-related action.
The player's level may not be the same as the level of the chunk when the player is teleporting to another dimension.
This event is not cancellable and does not have a result.
This event is fired on the main Forge event bus only on the logical server.
-
嵌套类概要
嵌套类修饰符和类型类说明static class
This event is fired when server sends "forget chunk" packet to theServerPlayer
.static class
This event is fired when chunk data is sent to theServerPlayer
(seePlayerChunkSender
).从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
level
-
player
-
pos
-
-
构造器详细资料
-
ChunkWatchEvent
-
-
方法详细资料
-
getPlayer
返回 the server player involved with the watch action。- 返回:
- the server player involved with the watch action
-
getPos
返回 the chunk position this watch event is affecting。- 返回:
- the chunk position this watch event is affecting
-
getLevel
返回 the server level containing the chunk。- 返回:
- the server level containing the chunk
-