public class PlayerConsumeEvent extends PlayerHungerEvent
| Constructor and Description |
|---|
PlayerConsumeEvent(Player player,
Item item,
double feed) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
Item |
item() |
double |
replenishAmount() |
void |
setReplenishAmount(double feed) |
feed, setFeedplayerpublic PlayerConsumeEvent(Player player, Item item, double feed)
player - the player associated with this eventfeed - the amount of hunger replenisheditem - the item consumedpublic double replenishAmount()
public void setReplenishAmount(double feed)
feed - the amount of hunger replenishedpublic boolean isIgnored()
isIgnored in interface CancellableisIgnored in class PlayerHungerEventpublic void cancel(boolean cancelled)
cancel in interface Cancellablecancel in class PlayerHungerEventcancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.