public class FontRenderOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
bold
Use bold font
|
int |
color
Color of the text
|
float |
fontScale
Scale for the font
|
boolean |
italic
Use italic font
|
boolean |
multiLines
Multilines (styles are only reset by ECF)
|
boolean |
shadow
Draw with shadow
|
boolean |
strikethrough
Striketrhough the text
|
boolean |
underline
Underline the text
|
| Constructor and Description |
|---|
FontRenderOptions() |
FontRenderOptions(boolean b) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addStyles(java.lang.String text) |
static net.minecraft.util.EnumChatFormatting |
getFormatting(java.lang.String text,
int index)
Gets the
EnumChatFormatting at the specified position in the text. |
int |
getShadowColor()
Gets the shadow color corresponding to the current color.
|
java.lang.String |
processStyles(java.lang.String text)
Process styles applied to the text with
EnumChatFormatting values. |
int |
processStyles(java.lang.String text,
int index) |
void |
resetStyles() |
void |
resetStyles(boolean force) |
void |
saveDefault() |
public float fontScale
public int color
public boolean shadow
public boolean bold
public boolean italic
public boolean underline
public boolean strikethrough
public boolean multiLines
public FontRenderOptions()
public FontRenderOptions(boolean b)
public java.lang.String processStyles(java.lang.String text)
EnumChatFormatting values.FontRenderOptions and returns the stripped text.text - the textpublic int processStyles(java.lang.String text,
int index)
public void saveDefault()
public void resetStyles()
public void resetStyles(boolean force)
public int getShadowColor()
public java.lang.String addStyles(java.lang.String text)
public static net.minecraft.util.EnumChatFormatting getFormatting(java.lang.String text,
int index)
EnumChatFormatting at the specified position in the text.text - the textindex - the index