Class NexoFurniturePlaceEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class NexoFurniturePlaceEvent extends Event implements Cancellable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNexoFurniturePlaceEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FurnitureMechanicmechanicprivate final Blockblockprivate final ItemDisplaybaseEntityprivate final Playerplayerprivate final ItemStackitemInHandprivate final EquipmentSlothandpublic final static NexoFurniturePlaceEvent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description NexoFurniturePlaceEvent(FurnitureMechanic mechanic, Block block, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand)
-
Method Summary
Modifier and Type Method Description final FurnitureMechanicgetMechanic()final BlockgetBlock()final ItemDisplaygetBaseEntity()final PlayergetPlayer()final ItemStackgetItemInHand()Gets the item in the player's hand when they placed the furniture. final EquipmentSlotgetHand()Gets the hand used to place the furniture. BooleanisCancelled()UnitsetCancelled(Boolean cancelled)HandlerListgetHandlers()-
-
Constructor Detail
-
NexoFurniturePlaceEvent
NexoFurniturePlaceEvent(FurnitureMechanic mechanic, Block block, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand)
-
-
Method Detail
-
getMechanic
final FurnitureMechanic getMechanic()
- Returns:
The FurnitureMechanic of this furniture
-
getBlock
final Block getBlock()
- Returns:
The block this furniture was placed at
-
getBaseEntity
final ItemDisplay getBaseEntity()
- Returns:
The item frame for this furniture
-
getPlayer
final Player getPlayer()
- Returns:
The player who placed this furniture
-
getItemInHand
final ItemStack getItemInHand()
Gets the item in the player's hand when they placed the furniture.
- Returns:
The ItemStack for the item in the player's hand when they placed the furniture
-
getHand
final EquipmentSlot getHand()
Gets the hand used to place the furniture.
- Returns:
The hand used to place the furniture
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancelled)
-
getHandlers
HandlerList getHandlers()
-
-
-
-