Enum-Klasse WarpType

java.lang.Object
java.lang.Enum<WarpType>
de.delinkedde.mobarenareborn.arena.WarpType
Alle implementierten Schnittstellen:
Serializable, Comparable<WarpType>, Constable

public enum WarpType extends Enum<WarpType>
The named teleport destinations an arena can define.

Each warp has a stable lower-case identifier used in commands and configuration, and a flag indicating whether it must be set before the arena may be enabled.

  • Enum-Konstanten - Details

    • ARENA

      public static final WarpType ARENA
      Where players are teleported when a round starts. Required.
    • LOBBY

      public static final WarpType LOBBY
      Where players are teleported when they join (the lobby). Required.
    • SPECTATOR

      public static final WarpType SPECTATOR
      Where spectators are teleported. Required.
    • EXIT

      public static final WarpType EXIT
      Optional destination used when leaving instead of the player's original location.
  • Methodendetails

    • values

      public static WarpType[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static WarpType valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • id

      @NotNull public @NotNull String id()
      Gibt zurück:
      the stable lower-case identifier used in commands and configuration
    • required

      public boolean required()
      Gibt zurück:
      true if this warp must be set before the arena can be enabled
    • fromId

      @Nullable public static @Nullable WarpType fromId(@NotNull @NotNull String id)
      Resolves a warp type from its identifier, ignoring case.
      Parameter:
      id - the identifier to resolve
      Gibt zurück:
      the matching warp type, or null if none matches
    • ids

      @NotNull public static @NotNull List<String> ids()
      Gibt zurück:
      the identifiers of all warp types, in declaration order