Class GameplayHooks.DeathRequest

java.lang.Object
dev.itsharshxd.zentrix.api.scenario.hook.GameplayHooks.DeathRequest
Enclosing class:
GameplayHooks

public static final class GameplayHooks.DeathRequest extends Object
A player of the match dying. Drops and the kept-inventory flag are mutable.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeathRequest(@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 Type
    Method
    Description
    @NotNull List<org.bukkit.inventory.ItemStack>
    The drops, mutable in place.
    boolean
     
    void
    keepInventory(boolean keepInventory)
     
    @NotNull Optional<org.bukkit.entity.Player>
     
    @NotNull org.bukkit.Location
     
    @NotNull org.bukkit.entity.Player
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @NotNull public @NotNull Optional<org.bukkit.entity.Player> killer()
    • drops

      @NotNull public @NotNull List<org.bukkit.inventory.ItemStack> drops()
      The drops, mutable in place.
    • location

      @NotNull public @NotNull org.bukkit.Location location()
    • keepInventory

      public boolean keepInventory()
    • keepInventory

      public void keepInventory(boolean keepInventory)