@Environment(value=CLIENT) public class TextReorderingProcessor extends Object
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.Int2IntFunction |
reverser |
private String |
string |
private List<Style> |
styles |
Modifier | Constructor and Description |
---|---|
private |
TextReorderingProcessor(String string,
List<Style> styles,
it.unimi.dsi.fastutil.ints.Int2IntFunction reverser) |
Modifier and Type | Method and Description |
---|---|
static TextReorderingProcessor |
create(StringVisitable visitable,
it.unimi.dsi.fastutil.ints.Int2IntFunction reverser,
UnaryOperator<String> unaryOperator) |
String |
getString() |
List<OrderedText> |
process(int start,
int length,
boolean reverse) |
private final String string
private final it.unimi.dsi.fastutil.ints.Int2IntFunction reverser
public String getString()
public List<OrderedText> process(int start, int length, boolean reverse)
public static TextReorderingProcessor create(StringVisitable visitable, it.unimi.dsi.fastutil.ints.Int2IntFunction reverser, UnaryOperator<String> unaryOperator)