Class NexoBlockBreakEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public class NexoBlockBreakEvent extends Event implements Cancellable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNexoBlockBreakEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private Dropdropprivate final CustomBlockMechanicmechanicprivate final Blockblockprivate final Playerplayerpublic final static NexoBlockBreakEvent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description NexoBlockBreakEvent(NoteBlockMechanic mechanic, Block block, Player player, Drop drop)NexoBlockBreakEvent(CustomBlockMechanic mechanic, Block block, Player player)
-
Method Summary
Modifier and Type Method Description final DropgetDrop()Set the drop of the block final UnitsetDrop(Drop drop)Set the drop of the block CustomBlockMechanicgetMechanic()final BlockgetBlock()final PlayergetPlayer()BooleanisCancelled()UnitsetCancelled(Boolean cancel)HandlerListgetHandlers()-
-
Constructor Detail
-
NexoBlockBreakEvent
NexoBlockBreakEvent(NoteBlockMechanic mechanic, Block block, Player player, Drop drop)
-
NexoBlockBreakEvent
NexoBlockBreakEvent(CustomBlockMechanic mechanic, Block block, Player player)
-
-
Method Detail
-
getMechanic
CustomBlockMechanic getMechanic()
- Returns:
The CustomBlockMechanic of this block
-
getBlock
final Block getBlock()
- Returns:
The block that was broken
-
getPlayer
final Player getPlayer()
- Returns:
The player who broke this block
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancel)
-
getHandlers
HandlerList getHandlers()
-
-
-
-