Class GameplayHooks.BlockDropRequest
java.lang.Object
dev.itsharshxd.zentrix.api.scenario.hook.GameplayHooks.BlockDropRequest
- Enclosing class:
GameplayHooks
A block broken by a player inside the match. Drops and experience are mutable.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockDropRequest(@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 TypeMethodDescription@NotNull org.bukkit.block.Blockblock()@NotNull List<org.bukkit.inventory.ItemStack> drops()The drops, mutable in place.intvoidexperience(int experience) @NotNull org.bukkit.entity.Playerplayer()@NotNull Optional<org.bukkit.inventory.ItemStack> tool()The item used to break the block, if any.
-
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
The item used to break the block, if any. -
drops
The drops, mutable in place. -
experience
public int experience() -
experience
public void experience(int experience)
-