Enum LobbyItemHandlerType

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

public enum LobbyItemHandlerType extends Enum<LobbyItemHandlerType>
Represents the type of LobbyItemHandler.

Custom ones use PLUGIN

  • Enum Constant Details

    • VIEW_ACHIEVEMENTS

      public static final LobbyItemHandlerType VIEW_ACHIEVEMENTS
      Opens a GUI that displays all achievements that the player has obtained or hasn't obtained yet.
    • FORCE_START

      public static final LobbyItemHandlerType FORCE_START
      Decreases lobby timer on use.
    • LEAVE

      public static final LobbyItemHandlerType LEAVE
      Kicks player out of the arena.
    • SELECT_TEAM

      public static final LobbyItemHandlerType SELECT_TEAM
      Opens a GUI in which the player can select the team in which he wants to be in.
    • VOTE_ARENA

      public static final LobbyItemHandlerType VOTE_ARENA
      Used for arenas of the type RegenerationType.VOTING: Opens a GUI on use in which players can vote in which arena the want to play in.
    • PLUGIN

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

    • values

      public static LobbyItemHandlerType[] 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 LobbyItemHandlerType 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