Class EntityDespawnEvent

java.lang.Object
net.minestom.server.event.entity.EntityDespawnEvent
All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent

public class EntityDespawnEvent extends Object implements EntityInstanceEvent
Called right before an entity is removed
  • Constructor Details

    • EntityDespawnEvent

      public EntityDespawnEvent(@NotNull @NotNull Entity entity)
  • Method Details

    • getEntity

      @NotNull public @NotNull Entity getEntity()
      Gets the entity who is about to be removed
      Specified by:
      getEntity in interface EntityEvent
      Returns:
      the entity