public class BarrelPlaceInventoryEvent extends PlaceEvent
object, player
Constructor and Description |
---|
BarrelPlaceInventoryEvent(org.bukkit.entity.Player player,
StackedBarrel barrel,
int increaseAmount)
The constructor for the event.
|
Modifier and Type | Method and Description |
---|---|
StackedBarrel |
getBarrel()
Get the barrel object of the event.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
int |
getIncreaseAmount()
Get the amount that the barrel is increased by.
|
getPlayer, isCancelled, setCancelled
public BarrelPlaceInventoryEvent(org.bukkit.entity.Player player, StackedBarrel barrel, int increaseAmount)
player
- The player who placed the barrel.barrel
- The barrel object.increaseAmount
- The amount that the barrel is increased by.public StackedBarrel getBarrel()
public int getIncreaseAmount()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()