Package net.minecraft.text
Class KeybindTextContent
java.lang.Object
net.minecraft.text.KeybindTextContent
- All Implemented Interfaces:
TextContent
The keybind text content. This
getTranslated()
implementation
is not thread-safe.- Mappings:
Namespace Name official um
intermediary net/minecraft/class_2572
named net/minecraft/text/KeybindTextContent
-
Field Details
-
key
- Mappings:
Namespace Name Mixin selector official b
Lum;b:Ljava/lang/String;
intermediary field_11767
Lnet/minecraft/class_2572;field_11767:Ljava/lang/String;
named key
Lnet/minecraft/text/KeybindTextContent;key:Ljava/lang/String;
-
translated
- Mappings:
Namespace Name Mixin selector official c
Lum;c:Ljava/util/function/Supplier;
intermediary field_11768
Lnet/minecraft/class_2572;field_11768:Ljava/util/function/Supplier;
named translated
Lnet/minecraft/text/KeybindTextContent;translated:Ljava/util/function/Supplier;
-
-
Constructor Details
-
KeybindTextContent
- Mappings:
Namespace Name Mixin selector official <init>
Lum;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2572;<init>(Ljava/lang/String;)V
named <init>
Lnet/minecraft/text/KeybindTextContent;<init>(Ljava/lang/String;)V
-
-
Method Details
-
getTranslated
- Mappings:
Namespace Name Mixin selector official b
Lum;b()Ltj;
intermediary method_27691
Lnet/minecraft/class_2572;method_27691()Lnet/minecraft/class_2561;
named getTranslated
Lnet/minecraft/text/KeybindTextContent;getTranslated()Lnet/minecraft/text/Text;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()
if it proceeds.- Specified by:
visit
in interfaceTextContent
- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ltk;a(Ltn$a;)Ljava/util/Optional;
intermediary method_27659
Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()
if it proceeds.- Specified by:
visit
in interfaceTextContent
- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ltk;a(Ltn$b;Luf;)Ljava/util/Optional;
intermediary method_27660
Lnet/minecraft/class_7417;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;
named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
-
equals
-
hashCode
public int hashCode() -
toString
-
getKey
- Mappings:
Namespace Name Mixin selector official a
Lum;a()Ljava/lang/String;
intermediary method_10901
Lnet/minecraft/class_2572;method_10901()Ljava/lang/String;
named getKey
Lnet/minecraft/text/KeybindTextContent;getKey()Ljava/lang/String;
-