Class CorpseLootDropEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.corpse.CorpseLootDropEvent
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCorpseLootDropEvent(@NotNull ZentrixCorpse corpse, @NotNull CorpseRemovalReason reason, @NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack[] items) -
Method Summary
Modifier and TypeMethodDescription@NotNull ZentrixCorpse@NotNull org.bukkit.Locationstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull org.bukkit.inventory.ItemStack[]getItems()@NotNull CorpseRemovalReasonbooleanvoidsetCancelled(boolean cancelled) voidsetDropLocation(@NotNull org.bukkit.Location location) voidsetItems(@NotNull org.bukkit.inventory.ItemStack[] items) Methods inherited from class dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
getArenaName, getGame, getGameId, getGameState, getGameTypeName, getPlayerCount, getRuntimeId, getSourceArenaNameMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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
-
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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixGameEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixGameEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-