Enum Class Contexts
- All Implemented Interfaces:
Context,Serializable,Comparable<Contexts>,Constable
Default FactionsUUID contexts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the context name, without any namespacing.Gets the namespace for this context.Gets known possible values for the context.getValues(org.bukkit.entity.Player player) Gets the values for a given player at this moment in time.static ContextsReturns the enum constant of this class with the specified name.static Contexts[]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, toString, valueOfMethods inherited from interface dev.kitteh.factions.integration.permcontext.Context
getNamespacedName
-
Enum Constant Details
-
FACTION_ID
-
IS_PEACEFUL
-
IS_PERMANENT
-
TERRITORY_RELATION
-
TERRITORY_IS_SAFEZONE
-
TERRITORY_IS_WILDERNESS
-
TERRITORY_IS_WARZONE
-
TERRITORY_ID
-
ROLE_AT_LEAST
-
ROLE_AT_MOST
-
-
Field Details
-
FACTIONSUUID_NAMESPACE
The FactionsUUID namespace. Should not be used by another plugin.- See Also:
-
-
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
-
getName
Description copied from interface:ContextGets the context name, without any namespacing. Format should be lowercase words separated by hyphens (-). -
getNamespace
Description copied from interface:ContextGets the namespace for this context. Namespaces should be the plugin name, lowercased. Other plugins using this class should not usefactionsuuidas their namespace.- Specified by:
getNamespacein interfaceContext- Returns:
- namespace
-
getPossibleValues
Description copied from interface:ContextGets known possible values for the context.- Specified by:
getPossibleValuesin interfaceContext- Returns:
- immutable set of possible values
-
getValues
Description copied from interface:ContextGets the values for a given player at this moment in time.
-