public enum BedrockTextFormatting extends java.lang.Enum<BedrockTextFormatting>
| Enum Constant and Description |
|---|
AQUA |
BLACK |
BLUE |
BOLD |
DARK_AQUA |
DARK_BLUE |
DARK_GRAY |
DARK_GREEN |
DARK_PURPLE |
DARK_RED |
GOLD |
GRAY |
GREEN |
ITALIC |
LIGHT_PURPLE |
MATERIAL_AMETHYST |
MATERIAL_COPPER |
MATERIAL_DIAMOND |
MATERIAL_EMERALD |
MATERIAL_GOLD |
MATERIAL_IRON |
MATERIAL_LAPIS |
MATERIAL_NETHERITE |
MATERIAL_QUARTZ |
MATERIAL_REDSTONE |
MINECOIN_GOLD |
OBFUSCATED |
RED |
RESET |
WHITE |
YELLOW |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,BedrockTextFormatting> |
ALL
All text formattings and colors-
|
static char |
COLOR_CHAR
The color char used for formatting.
|
static java.util.Map<java.lang.String,BedrockTextFormatting> |
COLORS
All text colors.
|
static java.util.Map<java.lang.String,BedrockTextFormatting> |
FORMATTINGS
All text formattings.
|
| Modifier and Type | Method and Description |
|---|---|
static BedrockTextFormatting |
getByCode(char code)
Get a formatting by code.
|
static BedrockTextFormatting |
getByName(java.lang.String name)
Get a formatting by name.
|
static BedrockTextFormatting |
getByOrdinal(int ordinal)
Get a formatting by ordinal.
|
static BedrockTextFormatting |
getClosestFormattingColor(int rgb)
Get the closest formatting color to the given rgb color.
|
char |
getCode() |
java.lang.String |
getName() |
int |
getRgbValue() |
boolean |
isColor() |
boolean |
isFormatting() |
static BedrockTextFormatting |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BedrockTextFormatting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BedrockTextFormatting BLACK
public static final BedrockTextFormatting DARK_BLUE
public static final BedrockTextFormatting DARK_GREEN
public static final BedrockTextFormatting DARK_AQUA
public static final BedrockTextFormatting DARK_RED
public static final BedrockTextFormatting DARK_PURPLE
public static final BedrockTextFormatting GOLD
public static final BedrockTextFormatting GRAY
public static final BedrockTextFormatting DARK_GRAY
public static final BedrockTextFormatting BLUE
public static final BedrockTextFormatting GREEN
public static final BedrockTextFormatting AQUA
public static final BedrockTextFormatting RED
public static final BedrockTextFormatting LIGHT_PURPLE
public static final BedrockTextFormatting YELLOW
public static final BedrockTextFormatting WHITE
public static final BedrockTextFormatting MINECOIN_GOLD
public static final BedrockTextFormatting MATERIAL_QUARTZ
public static final BedrockTextFormatting MATERIAL_IRON
public static final BedrockTextFormatting MATERIAL_NETHERITE
public static final BedrockTextFormatting MATERIAL_REDSTONE
public static final BedrockTextFormatting MATERIAL_COPPER
public static final BedrockTextFormatting MATERIAL_GOLD
public static final BedrockTextFormatting MATERIAL_EMERALD
public static final BedrockTextFormatting MATERIAL_DIAMOND
public static final BedrockTextFormatting MATERIAL_LAPIS
public static final BedrockTextFormatting MATERIAL_AMETHYST
public static final BedrockTextFormatting OBFUSCATED
public static final BedrockTextFormatting BOLD
public static final BedrockTextFormatting ITALIC
public static final BedrockTextFormatting RESET
public static final java.util.Map<java.lang.String,BedrockTextFormatting> ALL
public static final java.util.Map<java.lang.String,BedrockTextFormatting> COLORS
public static final java.util.Map<java.lang.String,BedrockTextFormatting> FORMATTINGS
public static final char COLOR_CHAR
public static BedrockTextFormatting[] values()
for (BedrockTextFormatting c : BedrockTextFormatting.values()) System.out.println(c);
public static BedrockTextFormatting valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nullable public static BedrockTextFormatting getByOrdinal(int ordinal)
ordinal - The ordinal of the formatting@Nullable public static BedrockTextFormatting getByName(java.lang.String name)
name - The name of the formatting@Nullable public static BedrockTextFormatting getByCode(char code)
code - The code of the formattingpublic static BedrockTextFormatting getClosestFormattingColor(int rgb)
rgb - The rgb colorpublic boolean isColor()
public boolean isFormatting()
OBFUSCATED, BOLD, ...)public java.lang.String getName()
public char getCode()
public int getRgbValue()