Enum Class FilterType
- All Implemented Interfaces:
Serializable,Comparable<FilterType>,Constable
Types of filters available for the language configuration
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplies all available filters described aboveThe string will be colored using '&' followed by a valid character to represent color codes.No filters are to be applied.The string will look for special filters and replace them with the appropriate replacement. -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterTypeReturns the enum constant of this class with the specified name.static FilterType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No filters are to be applied. The String will be returned as-is -
COLOR
The string will be colored using '&' followed by a valid character to represent color codes. -
SPECIAL
The string will look for special filters and replace them with the appropriate replacement. Special filters include:
- {expandFront(<text>,<size>,<length>)} - Expands the text to the desired size, appending whitespace in front of the text. This can be used to perfectly line up lines of text with each other when you size things to the same value. The 'size' is the size for player displays whereas the 'length' is the desired length of the string for the console. The two values are due to the console having a monotype font while in game is not one.
- {expandBack(<text>,<size>,<length>)} - The same as {expandFront(<text>,<size>,<length>)} except it places the whitespace after the text.
- {break} - Fills the remaining space on the line with dashes. To make it a solid line, preceed it with strike-through (&m).
-
ALL
Applies all available filters described above
-
-
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
-