public class BarrelUnstackEvent extends UnstackEvent
object, unstackAmount, unstackSource
Constructor and Description |
---|
BarrelUnstackEvent(StackedBarrel barrel,
org.bukkit.entity.Entity unstackSource,
int unstackAmount)
The constructor for the event.
|
Modifier and Type | Method and Description |
---|---|
int |
getAmount()
Get the amount the barrel is unstacked by.
|
StackedBarrel |
getBarrel()
Get the barrel that is unstacked.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
getUnstackSource, isCancelled, setCancelled
public BarrelUnstackEvent(StackedBarrel barrel, org.bukkit.entity.Entity unstackSource, int unstackAmount)
barrel
- The barrel object.unstackSource
- Get the source for the unstack.unstackAmount
- The amount the barrel is unstacked by.public StackedBarrel getBarrel()
public int getAmount()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()