public interface UIText
Modifier and Type | Method and Description |
---|---|
default String |
asHTML(CommandIssuer issuer)
Returns an HTML-encoded text for a specific command issuer.
|
String |
get(CommandIssuer issuer)
Returns a plain text preprocessed for a specific command issuer.
|
default String |
toANSI(CommandIssuer issuer) |
default String |
toMinecraft(CommandIssuer issuer)
Returns a text encoded with Minecraft color codes (
§* ). |
String get(CommandIssuer issuer)
Returns a plain text preprocessed for a specific command issuer.
A common usage of the issuer parameter is to translate to that issuer's locale.
This method should return a consistent value if null
is passed in.
issuer
- the CommandIssuer
whom this text will be preprocessed for. If null
, a default value
should be returned.default String asHTML(CommandIssuer issuer)
Returns an HTML-encoded text for a specific command issuer.
The default implementation redirects to get(CommandIssuer)
and escapes special HTML characters in
it.
issuer
- the CommandIssuer
to preprocess for or null
.get(CommandIssuer)
default String toMinecraft(CommandIssuer issuer)
Returns a text encoded with Minecraft color codes (§*
).
The default implementation redirects to get(CommandIssuer)
.
issuer
- the CommandIssuer
to preprocess for or null
.get(CommandIssuer)
default String toANSI(CommandIssuer issuer)
Copyright © 2016. All rights reserved.