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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe associated individual can always change their state regardless of the default allowance.The associated individual can never change their state regardless of the default allowance.The associated individual's ability to change is defined by the default allowance. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether or not this permission state allows changing.Returns the enum constant of this class with the specified name.static SpiritPermissions.ChangePermissions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CAN_NEVER_CHANGE
The associated individual can never change their state regardless of the default allowance. -
CAN_ALWAYS_CHANGE
The associated individual can always change their state regardless of the default allowance. -
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
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
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 nameNullPointerException
- 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 forCAN_NEVER_CHANGE
, and the value ofOriModConfigs.ALLOW_CHANGING_BY_DEFAULT
forINHERIT_DEFAULT
.
-