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.

    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 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