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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getInstance

      @NotNull public Instance 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