Class NexoFurnitureInteractEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class NexoFurnitureInteractEvent extends Event implements Cancellable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNexoFurnitureInteractEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ItemStackitemInHandprivate Event.ResultcanToggleLightprivate Event.ResultcanRotateprivate Event.ResultcanSitprivate Event.ResultcanSleepprivate Event.ResultcanOpenStorageprivate Event.ResultcanRunActionprivate final FurnitureMechanicmechanicprivate final ItemDisplaybaseEntityprivate final Playerplayerprivate final EquipmentSlothandprivate final LocationinteractionPointprivate Event.ResultuseFurnitureprivate Event.ResultuseItemInHandprivate final BlockFaceblockFacepublic final static NexoFurnitureInteractEvent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint, Event.Result useFurniture, Event.Result useItemInHand, BlockFace blockFace)NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint, Event.Result useFurniture, Event.Result useItemInHand)NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint, Event.Result useFurniture)NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint)NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand)
-
Method Summary
Modifier and Type Method Description final ItemStackgetItemInHand()final Event.ResultgetCanToggleLight()final UnitsetCanToggleLight(Event.Result canToggleLight)final Event.ResultgetCanRotate()final UnitsetCanRotate(Event.Result canRotate)final Event.ResultgetCanSit()final UnitsetCanSit(Event.Result canSit)final Event.ResultgetCanSleep()final UnitsetCanSleep(Event.Result canSleep)final Event.ResultgetCanOpenStorage()final UnitsetCanOpenStorage(Event.Result canOpenStorage)final Event.ResultgetCanRunAction()final UnitsetCanRunAction(Event.Result canRunAction)final FurnitureMechanicgetMechanic()final ItemDisplaygetBaseEntity()final PlayergetPlayer()final EquipmentSlotgetHand()final LocationgetInteractionPoint()final Event.ResultgetUseFurniture()final UnitsetUseFurniture(Event.Result useFurniture)final Event.ResultgetUseItemInHand()final UnitsetUseItemInHand(Event.Result useItemInHand)final BlockFacegetBlockFace()Returns the clicked blockface for this interaction. BooleanisCancelled()UnitsetCancelled(Boolean cancel)HandlerListgetHandlers()-
-
Constructor Detail
-
NexoFurnitureInteractEvent
NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint, Event.Result useFurniture, Event.Result useItemInHand, BlockFace blockFace)
-
NexoFurnitureInteractEvent
NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint, Event.Result useFurniture, Event.Result useItemInHand)
-
NexoFurnitureInteractEvent
NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint, Event.Result useFurniture)
-
NexoFurnitureInteractEvent
NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand, Location interactionPoint)
-
NexoFurnitureInteractEvent
NexoFurnitureInteractEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand)
-
-
Method Detail
-
getItemInHand
final ItemStack getItemInHand()
-
getCanToggleLight
final Event.Result getCanToggleLight()
-
setCanToggleLight
final Unit setCanToggleLight(Event.Result canToggleLight)
-
getCanRotate
final Event.Result getCanRotate()
-
setCanRotate
final Unit setCanRotate(Event.Result canRotate)
-
getCanSit
final Event.Result getCanSit()
-
getCanSleep
final Event.Result getCanSleep()
-
setCanSleep
final Unit setCanSleep(Event.Result canSleep)
-
getCanOpenStorage
final Event.Result getCanOpenStorage()
-
setCanOpenStorage
final Unit setCanOpenStorage(Event.Result canOpenStorage)
-
getCanRunAction
final Event.Result getCanRunAction()
-
setCanRunAction
final Unit setCanRunAction(Event.Result canRunAction)
-
getMechanic
final FurnitureMechanic getMechanic()
-
getBaseEntity
final ItemDisplay getBaseEntity()
-
getPlayer
final Player getPlayer()
-
getHand
final EquipmentSlot getHand()
-
getInteractionPoint
final Location getInteractionPoint()
-
getUseFurniture
final Event.Result getUseFurniture()
-
setUseFurniture
final Unit setUseFurniture(Event.Result useFurniture)
-
getUseItemInHand
final Event.Result getUseItemInHand()
-
setUseItemInHand
final Unit setUseItemInHand(Event.Result useItemInHand)
-
getBlockFace
final BlockFace getBlockFace()
Returns the clicked blockface for this interaction. Only applies if the interaction was with a barrier-hitbox block. If interaction-hitbox, this will be null.
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancel)
-
getHandlers
HandlerList getHandlers()
-
-
-
-