Class PlayerChunkLoadEvent

java.lang.Object
net.minestom.server.event.player.PlayerChunkLoadEvent
All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent

public class PlayerChunkLoadEvent extends Object implements PlayerInstanceEvent
Called when a player receive a new chunk data.
  • Constructor Details

    • PlayerChunkLoadEvent

      public PlayerChunkLoadEvent(@NotNull @NotNull Player player, int chunkX, int chunkZ)
  • Method Details

    • getChunkX

      public int getChunkX()
      Gets the chunk X.
      Returns:
      the chunk X
    • getChunkZ

      public int getChunkZ()
      Gets the chunk Z.
      Returns:
      the chunk Z
    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      Returns:
      the player