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 class
NexoFurnitureBreakEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private Drop
drop
private final FurnitureMechanic
mechanic
private final ItemDisplay
baseEntity
private final Player
player
public final static NexoFurnitureBreakEvent.Companion
Companion
-
Constructor Summary
Constructors Constructor Description NexoFurnitureBreakEvent(FurnitureMechanic mechanic, ItemDisplay baseEntity, Player player)
-
Method Summary
Modifier and Type Method Description final Drop
getDrop()
Set the drop of the furniture final Unit
setDrop(Drop drop)
Set the drop of the furniture final FurnitureMechanic
getMechanic()
final ItemDisplay
getBaseEntity()
final Player
getPlayer()
Boolean
isCancelled()
Unit
setCancelled(Boolean cancel)
HandlerList
getHandlers()
-
-
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()
-
-
-
-