public class EntityUnstackEvent extends UnstackEvent
object, unstackAmount, unstackSource
Constructor and Description |
---|
EntityUnstackEvent(StackedEntity entity,
org.bukkit.entity.Entity unstackSource,
int unstackAmount)
The constructor for the event.
|
Modifier and Type | Method and Description |
---|---|
int |
getAmount()
Get the amount the entity is unstacked by.
|
StackedEntity |
getEntity()
Get the entity that is unstacked.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
void |
setAmount(int unstackAmount)
Set the amount the entity will be unstacked by.
|
getUnstackSource, isCancelled, setCancelled
public EntityUnstackEvent(StackedEntity entity, org.bukkit.entity.Entity unstackSource, int unstackAmount)
entity
- The entity object.unstackSource
- Get the source for the unstack.unstackAmount
- The amount the entity is unstacked by.public StackedEntity getEntity()
public int getAmount()
public void setAmount(int unstackAmount)
unstackAmount
- The amount to set.public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()