public class KeybindText extends BaseText
Text.class_5245<T>, Text.class_5246<T>, Text.Serializer| Modifier and Type | Field and Description |
|---|---|
private static Function<String,Supplier<Text>> |
i18n |
private String |
key |
private Supplier<Text> |
name |
field_24340| Constructor and Description |
|---|
KeybindText(String key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getKey() |
<T> Optional<T> |
method_27659(Text.class_5245<T> class_5245) |
<T> Optional<T> |
method_27660(Text.class_5246<T> class_5246,
Style style) |
KeybindText |
method_27662() |
static void |
method_27690(Function<String,Supplier<Text>> function) |
private Text |
method_27691() |
String |
toString() |
append, asString, getSiblings, getStyle, hashCode, method_27661, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitmethod_27692, method_27693, method_27694, method_27695, method_27696asTruncatedString, getString, method_27657, method_27658private final String key
public KeybindText(String key)
@Environment(value=CLIENT) public static void method_27690(Function<String,Supplier<Text>> function)
private Text method_27691()
public <T> Optional<T> method_27659(Text.class_5245<T> class_5245)
@Environment(value=CLIENT) public <T> Optional<T> method_27660(Text.class_5246<T> class_5246, Style style)
public KeybindText method_27662()
method_27662 in interface Textmethod_27662 in class BaseTextpublic String getKey()