public class PlayerChestDropEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerChestDropEvent(Player player,
Item item,
int amount,
int chestID,
int chestSlot) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChestID()
Gets the ID of the chest.
|
int |
getChestSlot()
Gets the item slot in the chest (where the player got the item from).
|
Item |
getItem()
Gets the item.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Item getItem()
public int getChestID()
public int getChestSlot()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.