Class CustomEntityDeathEvent

java.lang.Object
org.bukkit.event.Event
dev.lone.itemsadder.api.Events.CustomEntityDeathEvent

public class CustomEntityDeathEvent extends Event
Called when an ItemsAdder custom entity dies.
  • Method Details

    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()
    • getNamespacedID

      public String getNamespacedID()
      Gets the custom entity namespaced id.
      Returns:
      the namespaced id.
    • getEntity

      public LivingEntity getEntity()
      Gets the base Bukkit entity.
      Returns:
      the base entity.
    • getKiller

      @Nullable public @Nullable Player getKiller()
      Gets the player that killed this entity.
      Returns:
      the killer, or null if the entity was not killed by a player.