Class PlayerChunkUnloadEvent
java.lang.Object
net.minestom.server.event.player.PlayerChunkUnloadEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent
Called after a chunk being unload to a certain player.
Could be used to unload the chunk internally in order to save memory.
-
Constructor Details
-
PlayerChunkUnloadEvent
-
-
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
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-