Class InstanceChunkUnloadEvent

java.lang.Object
net.minestom.server.event.instance.InstanceChunkUnloadEvent
All Implemented Interfaces:
Event, InstanceEvent

public class InstanceChunkUnloadEvent extends Object implements InstanceEvent
Called when a chunk in an instance is unloaded.
  • Constructor Details

    • InstanceChunkUnloadEvent

      public InstanceChunkUnloadEvent(@NotNull @NotNull Instance instance, @NotNull @NotNull Chunk chunk)
  • Method Details

    • getInstance

      @NotNull public @NotNull Instance getInstance()
      Description copied from interface: InstanceEvent
      Gets the instance.
      Specified by:
      getInstance in interface InstanceEvent
      Returns:
      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
    • getChunk

      @NotNull public @NotNull Chunk getChunk()
      Gets the chunk.
      Returns:
      the chunk.