Package dev.kitteh.factions.permissible
Enum Class PermissibleActions
- All Implemented Interfaces:
PermissibleAction,Serializable,Comparable<PermissibleActions>,Constable
@AvailableSince("4.0.0")
@NullMarked
public enum PermissibleActions
extends Enum<PermissibleActions>
implements PermissibleAction
Default permissible actions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface dev.kitteh.factions.permissible.PermissibleAction
PermissibleAction.Simple, PermissibleAction.WithPrerequisite -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionLong description, such as "Opening any block that can store items".@Nullable UpgradePrerequisite for this permissible action to appear to users, if present.Short description text, such as "open containers".toString()static PermissibleActionsReturns the enum constant of this class with the specified name.static PermissibleActions[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface dev.kitteh.factions.permissible.PermissibleAction
name
-
Enum Constant Details
-
BUILD
-
DESTROY
-
PAINBUILD
-
ITEM
-
CONTAINER
-
BUTTON
-
DOOR
-
LEVER
-
PLATE
-
FROSTWALK
-
INVITE
-
KICK
-
BAN
-
PROMOTE
-
DISBAND
-
ECONOMY
-
TERRITORY
-
HOME
-
SETHOME
-
LISTCLAIMS
-
WARP
-
SETWARP
-
TNTDEPOSIT
-
TNTWITHDRAW
-
SHIELD
-
FLY
-
UPGRADE
-
ZONE
-
-
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
-
description
Description copied from interface:PermissibleActionLong description, such as "Opening any block that can store items".- Specified by:
descriptionin interfacePermissibleAction- Returns:
- description
-
shortDescription
Description copied from interface:PermissibleActionShort description text, such as "open containers".- Specified by:
shortDescriptionin interfacePermissibleAction- Returns:
- short description
-
prerequisite
Description copied from interface:PermissibleActionPrerequisite for this permissible action to appear to users, if present.- Specified by:
prerequisitein interfacePermissibleAction- Returns:
- prerequisite or null if not present
-
toString
- Overrides:
toStringin classEnum<PermissibleActions>
-