Class GameplayHooks.EntityDropRequest

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

public static final class GameplayHooks.EntityDropRequest extends Object
An entity killed inside the match. Drops and experience are mutable.
  • Constructor Details

    • EntityDropRequest

      public EntityDropRequest(@NotNull @NotNull org.bukkit.entity.Entity entity, @Nullable @Nullable org.bukkit.entity.Player killer, @NotNull @NotNull Collection<org.bukkit.inventory.ItemStack> drops, int experience)
  • Method Details

    • entity

      @NotNull public @NotNull org.bukkit.entity.Entity entity()
    • killer

      @NotNull public @NotNull Optional<org.bukkit.entity.Player> killer()
      The player credited with the kill, if any.
    • drops

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

      public int experience()
    • experience

      public void experience(int experience)