Enum RegenerationType

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

public enum RegenerationType extends Enum<RegenerationType>
The "regeneration type" or just simply "type" describes the form of an arena
  • Enum Constant Details

    • WORLD

      public static final RegenerationType WORLD
      Game fills the complete world
    • REGION

      public static final RegenerationType REGION
      Game fills only a given rectangular region
    • VOTING

      public static final RegenerationType VOTING
      Arena is not actually an arena in which you play. Only uses its lobby to vote for the arena in which you'll play.
  • Method Details

    • values

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

      public String getId()
    • isNormal

      public boolean isNormal()
    • fromId

      @Nullable public static @Nullable RegenerationType fromId(String id)