Enum EnglishChatStyle
- java.lang.Object
-
- java.lang.Enum<EnglishChatStyle>
-
- com.onarandombox.MultiverseCore.enums.EnglishChatStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnglishChatStyle>
public enum EnglishChatStyle extends java.lang.Enum<EnglishChatStyle>
A regularChatColor
represented by an english string.- See Also:
ChatColor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnglishChatStyle
fromString(java.lang.String text)
Constructs anEnglishChatStyle
from aString
.org.bukkit.ChatColor
getColor()
Gets the color.static EnglishChatStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnglishChatStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final EnglishChatStyle NORMAL
No style.
-
MAGIC
public static final EnglishChatStyle MAGIC
-
BOLD
public static final EnglishChatStyle BOLD
-
STRIKETHROUGH
public static final EnglishChatStyle STRIKETHROUGH
-
UNDERLINE
public static final EnglishChatStyle UNDERLINE
-
ITALIC
public static final EnglishChatStyle ITALIC
-
-
Method Detail
-
values
public static EnglishChatStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EnglishChatStyle c : EnglishChatStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnglishChatStyle valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getColor
public org.bukkit.ChatColor getColor()
Gets the color.- Returns:
- The color as
ChatColor
.
-
fromString
public static EnglishChatStyle fromString(java.lang.String text)
Constructs anEnglishChatStyle
from aString
.- Parameters:
text
- TheString
.- Returns:
- The
EnglishChatStyle
.
-
-