Class InstanceChunkUnloadEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.instance.InstanceChunkUnloadEvent
public class InstanceChunkUnloadEvent extends Event
Called when a chunk in an instance is unloaded.
-
Constructor Summary
Constructors Constructor Description InstanceChunkUnloadEvent(Instance instance, int chunkX, int chunkZ)
-
Method Summary
Modifier and Type Method Description int
getChunkX()
Gets the chunk X.int
getChunkZ()
Gets the chunk Z.Instance
getInstance()
Gets the instance where the chunk has been unloaded.
-
Constructor Details
-
Method Details
-
getInstance
Gets the instance where the chunk has been unloaded.- Returns:
- the instance
-
getChunkX
public int getChunkX()Gets the chunk X.- Returns:
- the chunk X
-
getChunkZ
public int getChunkZ()Gets the chunk Z.- Returns:
- the chunk Z
-