Class ItemUpdateStateEvent

All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, ItemEvent, PlayerEvent, PlayerInstanceEvent

public class ItemUpdateStateEvent extends Object implements PlayerInstanceEvent, ItemEvent
  • Constructor Details

    • ItemUpdateStateEvent

      public ItemUpdateStateEvent(@NotNull @NotNull Player player, @NotNull Player.Hand hand, @NotNull @NotNull ItemStack itemStack)
  • Method Details

    • getHand

      @NotNull public Player.Hand getHand()
    • setHandAnimation

      public void setHandAnimation(boolean handAnimation)
    • hasHandAnimation

      public boolean hasHandAnimation()
    • getItemStack

      @NotNull public @NotNull ItemStack getItemStack()
      Specified by:
      getItemStack in interface ItemEvent
    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      the player