public class StringWalker
extends java.lang.Object
| Constructor and Description |
|---|
StringWalker(java.lang.String str,
MalisisFont font,
FontOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyStyles(boolean apply) |
void |
checkLink() |
void |
endIndex(int index) |
char |
getChar() |
net.minecraft.util.text.TextFormatting |
getFormatting() |
int |
getIndex() |
Link |
getLink() |
float |
getWidth() |
boolean |
isApplyStyles() |
boolean |
isFormatted() |
boolean |
isLink() |
void |
setLitteral(boolean litteral) |
void |
skipChars(boolean skip) |
void |
startIndex(int index) |
boolean |
walk() |
float |
walkToCharacter(int c)
Walk to character index
c and return the coordinate for that character. |
int |
walkToCoord(float x)
Walk to the specified
x coordinate and returns the character index at that coordinate. |
public StringWalker(java.lang.String str,
MalisisFont font,
FontOptions options)
public void setLitteral(boolean litteral)
public void skipChars(boolean skip)
public void applyStyles(boolean apply)
public boolean isApplyStyles()
public int getIndex()
public char getChar()
public net.minecraft.util.text.TextFormatting getFormatting()
public boolean isFormatted()
public Link getLink()
public boolean isLink()
public float getWidth()
public void startIndex(int index)
public void endIndex(int index)
public void checkLink()
public float walkToCharacter(int c)
c and return the coordinate for that character.c - the cpublic int walkToCoord(float x)
x coordinate and returns the character index at that coordinate.x - the xpublic boolean walk()