public class VoidVanillaStringFormat extends StringFormat
StringFormat implementation for the vanilla format without actually reading or writing anything.colorChar| Constructor | Description |
|---|---|
VoidVanillaStringFormat(char colorChar) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canWrite(TextFormatting formatting) |
Check if this format can write the given text formatting.
|
boolean |
matches(TextStringReader reader) |
Check if the reader matches the format of this string format.
|
TextFormatting |
read(TextStringReader reader) |
Read the next formatting code from the reader.
|
void |
write(java.lang.StringBuilder builder,
TextFormatting formatting) |
Write the given text formatting to the builder.
|
adventure, adventure, ansi, ansi, bungee, bungee, canRead, convertTo, fromString, fromString, init, prependStyle, resolve, shouldResetAtEnd, split, styleAt, toString, toString, vanilla, vanilla, vanilla, vanillapublic boolean matches(TextStringReader reader)
StringFormatTextStringReader.mark() and TextStringReader.reset().matches in class StringFormatreader - The reader to check@Nullable public TextFormatting read(TextStringReader reader)
StringFormatStringFormat.matches(TextStringReader) before calling this method.null should be returned.read in class StringFormatreader - The reader to read fromnull if the formatting code is invalidpublic boolean canWrite(TextFormatting formatting)
StringFormatcanWrite in class StringFormatformatting - The formatting to checkpublic void write(java.lang.StringBuilder builder,
TextFormatting formatting)
StringFormatStringFormat.canWrite(TextFormatting) returns true.write in class StringFormatbuilder - The builder to write toformatting - The formatting to write