public class PlayerItemConsumeEvent extends PlayerEvent implements CancellableEvent
| Constructor and Description |
|---|
PlayerItemConsumeEvent(Player p,
ItemStack item) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getItem() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
getPlayer, hasPlayerpublic ItemStack getItem()
public boolean isCancelled()
isCancelled in interface CancellableEventpublic void setCancelled(boolean cancel)
setCancelled in interface CancellableEvent