Class NexoNoteBlockPlaceEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class NexoNoteBlockPlaceEvent extends NexoBlockPlaceEvent implements Cancellable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNexoNoteBlockPlaceEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final NoteBlockMechanicmechanicprivate final Blockblockprivate final Playerplayerprivate final ItemStackitemInHandprivate final EquipmentSlothandpublic final static NexoNoteBlockPlaceEvent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description NexoNoteBlockPlaceEvent(NoteBlockMechanic mechanic, Block block, Player player, ItemStack itemInHand, EquipmentSlot hand)
-
Method Summary
Modifier and Type Method Description NoteBlockMechanicgetMechanic()HandlerListgetHandlers()-
Methods inherited from class com.nexomc.nexo.api.events.custom_block.NexoBlockPlaceEvent
getBlock, getHand, getItemInHand, 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
-
NexoNoteBlockPlaceEvent
NexoNoteBlockPlaceEvent(NoteBlockMechanic mechanic, Block block, Player player, ItemStack itemInHand, EquipmentSlot hand)
-
-
Method Detail
-
getMechanic
NoteBlockMechanic getMechanic()
- Returns:
The CustomBlockMechanic of this block
-
getHandlers
HandlerList getHandlers()
-
-
-
-