Class NexoFurnitureBreakEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class NexoFurnitureBreakEvent extends Event implements Cancellable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNexoFurnitureBreakEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private Dropdropprivate final FurnitureMechanicmechanicprivate final ItemDisplaybaseEntityprivate final Playerplayerpublic final static NexoFurnitureBreakEvent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description NexoFurnitureBreakEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player)
-
Method Summary
Modifier and Type Method Description final DropgetDrop()Set the drop of the furniture final UnitsetDrop(Drop drop)Set the drop of the furniture final FurnitureMechanicgetMechanic()final ItemDisplaygetBaseEntity()final PlayergetPlayer()BooleanisCancelled()UnitsetCancelled(Boolean cancel)HandlerListgetHandlers()-
-
Constructor Detail
-
NexoFurnitureBreakEvent
NexoFurnitureBreakEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player)
-
-
Method Detail
-
setDrop
final Unit setDrop(Drop drop)
Set the drop of the furniture
- Parameters:
drop- the new drop- Returns:
The drop of the furniture
-
getMechanic
final FurnitureMechanic getMechanic()
- Returns:
The FurnitureMechanic of this Furniture
-
getBaseEntity
final ItemDisplay getBaseEntity()
-
getPlayer
final Player getPlayer()
- Returns:
The player that broke the furniture
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancel)
-
getHandlers
HandlerList getHandlers()
-
-
-
-