public abstract class UnstackEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
| Modifier and Type | Field and Description |
|---|---|
protected StackedObject |
object |
protected int |
unstackAmount |
protected org.bukkit.entity.Entity |
unstackSource |
| Constructor and Description |
|---|
UnstackEvent(StackedObject object,
org.bukkit.entity.Entity unstackSource,
int unstackAmount)
The constructor for the event.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.entity.Entity |
getUnstackSource()
Get the source for the unstack.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
protected final StackedObject object
protected final org.bukkit.entity.Entity unstackSource
protected int unstackAmount
public UnstackEvent(StackedObject object, org.bukkit.entity.Entity unstackSource, int unstackAmount)
object - The original stacked object.unstackSource - Get the source for the unstack.unstackAmount - The amount the object is unstacked by.public org.bukkit.entity.Entity getUnstackSource()
public boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface org.bukkit.event.Cancellable