Class GameplayHooks.DeathRequest
java.lang.Object
dev.itsharshxd.zentrix.api.scenario.hook.GameplayHooks.DeathRequest
- Enclosing class:
GameplayHooks
A player of the match dying. Drops and the kept-inventory flag are mutable.
-
Constructor Summary
ConstructorsConstructorDescriptionDeathRequest(@NotNull org.bukkit.entity.Player victim, @Nullable org.bukkit.entity.Player killer, @NotNull Collection<org.bukkit.inventory.ItemStack> drops, @NotNull org.bukkit.Location location, boolean keepInventory) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<org.bukkit.inventory.ItemStack> drops()The drops, mutable in place.booleanvoidkeepInventory(boolean keepInventory) @NotNull Optional<org.bukkit.entity.Player> killer()@NotNull org.bukkit.Locationlocation()@NotNull org.bukkit.entity.Playervictim()
-
Constructor Details
-
DeathRequest
public DeathRequest(@NotNull @NotNull org.bukkit.entity.Player victim, @Nullable @Nullable org.bukkit.entity.Player killer, @NotNull @NotNull Collection<org.bukkit.inventory.ItemStack> drops, @NotNull @NotNull org.bukkit.Location location, boolean keepInventory)
-
-
Method Details
-
victim
@NotNull public @NotNull org.bukkit.entity.Player victim() -
killer
-
drops
The drops, mutable in place. -
location
@NotNull public @NotNull org.bukkit.Location location() -
keepInventory
public boolean keepInventory() -
keepInventory
public void keepInventory(boolean keepInventory)
-