Package net.minestom.server.event.player
Class PlayerEatEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.player.PlayerEatEvent
public class PlayerEatEvent extends Event
Called when a player is finished eating.
-
Constructor Summary
Constructors Constructor Description PlayerEatEvent(Player player, ItemStack foodItem)
-
Method Summary
Modifier and Type Method Description ItemStack
getFoodItem()
Gets the food item that has been eaten.Player
getPlayer()
Gets the player who is finished eating.
-
Constructor Details
-
Method Details
-
getPlayer
Gets the player who is finished eating.- Returns:
- the concerned player
-
getFoodItem
Gets the food item that has been eaten.- Returns:
- the food item
-