Class GameplayHooks.BlockDropRequest

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

public static final class GameplayHooks.BlockDropRequest extends Object
A block broken by a player inside the match. Drops and experience are mutable.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockDropRequest(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.block.Block block, @Nullable org.bukkit.inventory.ItemStack tool, @NotNull Collection<org.bukkit.inventory.ItemStack> drops, int experience)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.block.Block
     
    @NotNull List<org.bukkit.inventory.ItemStack>
    The drops, mutable in place.
    int
     
    void
    experience(int experience)
     
    @NotNull org.bukkit.entity.Player
     
    @NotNull Optional<org.bukkit.inventory.ItemStack>
    The item used to break the block, if any.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockDropRequest

      public BlockDropRequest(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.block.Block block, @Nullable @Nullable org.bukkit.inventory.ItemStack tool, @NotNull @NotNull Collection<org.bukkit.inventory.ItemStack> drops, int experience)
  • Method Details

    • player

      @NotNull public @NotNull org.bukkit.entity.Player player()
    • block

      @NotNull public @NotNull org.bukkit.block.Block block()
    • tool

      @NotNull public @NotNull Optional<org.bukkit.inventory.ItemStack> tool()
      The item used to break the block, 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)