Class InstanceChunkLoadEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.instance.InstanceChunkLoadEvent
public class InstanceChunkLoadEvent extends Event
Called when a chunk in an instance is loaded.
-
Constructor Summary
Constructors Constructor Description InstanceChunkLoadEvent(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 loaded.
-
Constructor Details
-
Method Details
-
getInstance
Gets the instance where the chunk has been loaded.- 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
-