Class PlayerItemConsumeEvent

java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerItemConsumeEvent
All Implemented Interfaces:
Cancellable

public class PlayerItemConsumeEvent extends PlayerEvent implements Cancellable
Called when a player eats something
  • Constructor Details

    • PlayerItemConsumeEvent

      public PlayerItemConsumeEvent(Player player, Item item)
  • Method Details

    • getHandlers

      public static HandlerList getHandlers()
    • getItem

      public Item getItem()