Enum SpectatorItemHandlerType

java.lang.Object
java.lang.Enum<SpectatorItemHandlerType>
de.marcely.bedwars.api.game.spectator.SpectatorItemHandlerType
All Implemented Interfaces:
Serializable, Comparable<SpectatorItemHandlerType>, java.lang.constant.Constable

public enum SpectatorItemHandlerType extends Enum<SpectatorItemHandlerType>
Represents the type of SpectatorItemHandler.

Custom ones use PLUGIN

  • Enum Constant Details

    • CHANGE_SPEED

      public static final SpectatorItemHandlerType CHANGE_SPEED
      Clicking on causes the fly/movement speed of a player to get changed.
    • LEAVE

      public static final SpectatorItemHandlerType LEAVE
      Player leaves the spectating mode when clicking on it.
    • NEXT_ROUND

      public static final SpectatorItemHandlerType NEXT_ROUND
      Clicking on it causes the player to get sent to a new game.
    • VIEW_PLAYERS

      public static final SpectatorItemHandlerType VIEW_PLAYERS
      Opens a GUI which contains all players currently playing inside the arena.
    • PLUGIN

      public static final SpectatorItemHandlerType PLUGIN
      A custom type created by something accessing the API.
  • Method Details

    • values

      public static SpectatorItemHandlerType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SpectatorItemHandlerType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      @Nullable public @Nullable String getId()
      Returns the id that's being used for the handler. null is being returned when passing PLUGIN.
      Returns:
      The id of this handler type