Enum Class SpiritPermissions.ChangePermissions

java.lang.Object
java.lang.Enum<SpiritPermissions.ChangePermissions>
etithespirit.orimod.server.persistence.SpiritPermissions.ChangePermissions
All Implemented Interfaces:
Serializable, Comparable<SpiritPermissions.ChangePermissions>, Constable
Enclosing class:
SpiritPermissions

public static enum SpiritPermissions.ChangePermissions extends Enum<SpiritPermissions.ChangePermissions>
  • Enum Constant Details

    • CAN_NEVER_CHANGE

      public static final SpiritPermissions.ChangePermissions CAN_NEVER_CHANGE
      The associated individual can never change their state regardless of the default allowance.
    • CAN_ALWAYS_CHANGE

      public static final SpiritPermissions.ChangePermissions CAN_ALWAYS_CHANGE
      The associated individual can always change their state regardless of the default allowance.
    • INHERIT_DEFAULT

      public static final SpiritPermissions.ChangePermissions INHERIT_DEFAULT
      The associated individual's ability to change is defined by the default allowance.
  • Field Details

    • code

      public final int code
    • persistent

      public final boolean persistent
  • Method Details

    • values

      public static SpiritPermissions.ChangePermissions[] 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 SpiritPermissions.ChangePermissions 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
    • canChange

      public boolean canChange()
      Returns whether or not this permission state allows changing.
      Returns:
      True for CAN_ALWAYS_CHANGE, false for CAN_NEVER_CHANGE, and the value of OriModConfigs.ALLOW_CHANGING_BY_DEFAULT for INHERIT_DEFAULT.