Enum Class BypassPermission
- All Implemented Interfaces:
Serializable
,Comparable<BypassPermission>
,Constable
This enum represents the different permissions used to bypass various protections
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe ability to bypass the cost of creating stargatesThe ability to bypass the cost of destroying stargatesThe ability to bypass the cost of using stargatesThe ability to bypass the max "gates per network" limitThe ability to bypass the protection of hidden stargatesThe ability to bypass the protection of private stargates -
Method Summary
Modifier and TypeMethodDescriptionGets the permission string for this protection bypassstatic BypassPermission
Returns the enum constant of this class with the specified name.static BypassPermission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COST_USE
The ability to bypass the cost of using stargates -
COST_CREATE
The ability to bypass the cost of creating stargates -
COST_DESTROY
The ability to bypass the cost of destroying stargates -
PRIVATE
The ability to bypass the protection of private stargates -
HIDDEN
The ability to bypass the protection of hidden stargates -
GATE_LIMIT
The ability to bypass the max "gates per network" limit
-
-
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
-
getPermissionString
Gets the permission string for this protection bypass- Returns:
The permission string for this bypass permission
-