类 ChunkWatchEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.ChunkWatchEvent
直接已知子类:
ChunkWatchEvent.UnWatch, ChunkWatchEvent.Watch

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.

  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getPlayer

      public ServerPlayer getPlayer()
      返回 the server player involved with the watch action。
      返回:
      the server player involved with the watch action
    • getPos

      public ChunkPos getPos()
      返回 the chunk position this watch event is affecting。
      返回:
      the chunk position this watch event is affecting
    • getLevel

      public ServerLevel getLevel()
      返回 the server level containing the chunk。
      返回:
      the server level containing the chunk