Class CorpseLootDropEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class CorpseLootDropEvent extends ZentrixGameEvent implements org.bukkit.event.Cancellable
Cancellable event fired before a corpse releases its stored inventory.
  • Constructor Details

    • CorpseLootDropEvent

      public CorpseLootDropEvent(@NotNull @NotNull ZentrixCorpse corpse, @NotNull @NotNull CorpseRemovalReason reason, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.inventory.ItemStack[] items)
  • Method Details

    • getCorpse

      @NotNull public @NotNull ZentrixCorpse getCorpse()
    • getReason

      @NotNull public @NotNull CorpseRemovalReason getReason()
    • getDropLocation

      @NotNull public @NotNull org.bukkit.Location getDropLocation()
    • setDropLocation

      public void setDropLocation(@NotNull @NotNull org.bukkit.Location location)
    • getItems

      @NotNull public @NotNull org.bukkit.inventory.ItemStack[] getItems()
    • setItems

      public void setItems(@NotNull @NotNull org.bukkit.inventory.ItemStack[] items)
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixGameEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixGameEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()