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