Enum Class PortalValidity

java.lang.Object
java.lang.Enum<PortalValidity>
org.sgrewritten.stargate.property.PortalValidity
All Implemented Interfaces:
Serializable, Comparable<PortalValidity>, Constable

public enum PortalValidity extends Enum<PortalValidity>
How should portals with invalid structures be dealt with?
  • Enum Constant Details

    • IGNORE

      public static final PortalValidity IGNORE
      Ignore loading the portal if it has an invalid structure
    • REPAIR

      public static final PortalValidity REPAIR
      Repair the portal if it has an invalid structure
    • REMOVE

      public static final PortalValidity REMOVE
      Remove the portal from the database if it has an invalid structure
  • Method Details

    • values

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

      public static PortalValidity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null