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 class
NexoFurniturePlaceEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FurnitureMechanic
mechanic
private final Block
block
private final ItemDisplay
baseEntity
private final Player
player
private final ItemStack
itemInHand
private final EquipmentSlot
hand
public final static NexoFurniturePlaceEvent.Companion
Companion
-
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 FurnitureMechanic
getMechanic()
final Block
getBlock()
final ItemDisplay
getBaseEntity()
final Player
getPlayer()
final ItemStack
getItemInHand()
Gets the item in the player's hand when they placed the furniture. final EquipmentSlot
getHand()
Gets the hand used to place the furniture. Boolean
isCancelled()
Unit
setCancelled(Boolean cancelled)
HandlerList
getHandlers()
-
-
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()
-
-
-
-