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
public ItemStack getItem()
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
setCancelled
in interface CancellableEvent