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 class
NexoBlockBreakEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private Drop
drop
private final CustomBlockMechanic
mechanic
private final Block
block
private final Player
player
public final static NexoBlockBreakEvent.Companion
Companion
-
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 Drop
getDrop()
Set the drop of the block final Unit
setDrop(Drop drop)
Set the drop of the block CustomBlockMechanic
getMechanic()
final Block
getBlock()
final Player
getPlayer()
Boolean
isCancelled()
Unit
setCancelled(Boolean cancel)
HandlerList
getHandlers()
-
-
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()
-
-
-
-