Class PlayerEmotePlayEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.PlayerEmotePlayEvent
All Implemented Interfaces:
Cancellable

public class PlayerEmotePlayEvent extends PlayerEvent implements Cancellable
Called before a player starts playing an emote.
  • Constructor Details

    • PlayerEmotePlayEvent

      public PlayerEmotePlayEvent(@NotNull @NotNull Player who, @NotNull @NotNull String emoteName)
      Creates a player emote play event.
      Parameters:
      who - the player.
      emoteName - the emote name.
  • Method Details

    • getEmoteName

      public String getEmoteName()
      Gets the emote name.
      Returns:
      the emote name.
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()