Enum Class Range.Type
- All Implemented Interfaces:
Serializable, Comparable<Range.Type>, Constable
- Enclosing class:
Range
The named scopes a range can take. Every scope except
BLOCKS carries a fixed marker value.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Range.TypeMaps a marker value back to its scope, falling back toBLOCKSfor a plain radius.static Range.TypefromString(String string) Maps a scope name back to its constant, ignoring case.static Range.TypeReturns the enum constant of this class with the specified name.static Range.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WORLD_TYPE
-
WORLD_NAME
-
PROXY
-
SERVER
-
PLAYER
-
BLOCKS
-
-
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
-
fromInt
Maps a marker value back to its scope, falling back toBLOCKSfor a plain radius.- Parameters:
integer- the raw value- Returns:
- the matching scope
-
fromString
Maps a scope name back to its constant, ignoring case.- Parameters:
string- the scope name- Returns:
- the matching scope
- Throws:
IllegalArgumentException- if the name is not a known scope
-