Class NexoStringBlockDamageEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class NexoStringBlockDamageEvent extends NexoBlockDamageEvent implements Cancellable
Event fired right before a player damages a StringBlock If cancelled, the block will not be damaged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
NexoStringBlockDamageEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringBlockMechanic
mechanic
private final Block
block
private final Player
player
public final static NexoStringBlockDamageEvent.Companion
Companion
-
Constructor Summary
Constructors Constructor Description NexoStringBlockDamageEvent(StringBlockMechanic mechanic, Block block, Player player)
-
Method Summary
Modifier and Type Method Description StringBlockMechanic
getMechanic()
HandlerList
getHandlers()
-
Methods inherited from class com.nexomc.nexo.api.events.custom_block.NexoBlockDamageEvent
getBlock, getPlayer, isCancelled, setCancelled
-
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NexoStringBlockDamageEvent
NexoStringBlockDamageEvent(StringBlockMechanic mechanic, Block block, Player player)
- Parameters:
mechanic
- The StringBlockMechanic of this blockblock
- The block that was damagedplayer
- The player who damaged this block
-
-
Method Detail
-
getMechanic
StringBlockMechanic getMechanic()
-
getHandlers
HandlerList getHandlers()
-
-
-
-