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 named net/minecraft/text/KeybindTextContent
intermediary net/minecraft/class_2572
official yt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.Type<T extends TextContent>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<KeybindTextContent> private final String
static final TextContent.Type
<KeybindTextContent> -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.text.TextContent
parse
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/text/KeybindTextContent;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46619
Lnet/minecraft/class_2572;field_46619:Lcom/mojang/serialization/MapCodec;
official a
Lyt;a:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPE
Lnet/minecraft/text/KeybindTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;
intermediary field_46620
Lnet/minecraft/class_2572;field_46620:Lnet/minecraft/class_7417$class_8823;
official b
Lyt;b:Lxq$a;
-
key
- Mappings:
Namespace Name Mixin selector named key
Lnet/minecraft/text/KeybindTextContent;key:Ljava/lang/String;
intermediary field_11767
Lnet/minecraft/class_2572;field_11767:Ljava/lang/String;
official c
Lyt;c:Ljava/lang/String;
-
translated
- Mappings:
Namespace Name Mixin selector named translated
Lnet/minecraft/text/KeybindTextContent;translated:Ljava/util/function/Supplier;
intermediary field_11768
Lnet/minecraft/class_2572;field_11768:Ljava/util/function/Supplier;
official d
Lyt;d:Ljava/util/function/Supplier;
-
-
Constructor Details
-
KeybindTextContent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/text/KeybindTextContent;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2572;<init>(Ljava/lang/String;)V
official <init>
Lyt;<init>(Ljava/lang/String;)V
-
-
Method Details
-
getTranslated
- Mappings:
Namespace Name Mixin selector named getTranslated
Lnet/minecraft/text/KeybindTextContent;getTranslated()Lnet/minecraft/text/Text;
intermediary method_27691
Lnet/minecraft/class_2572;method_27691()Lnet/minecraft/class_2561;
official c
Lyt;c()Lxp;
-
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 named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
intermediary method_27659
Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
official a
Lxq;a(Lxu$a;)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 named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)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;
official a
Lxq;a(Lxu$b;Lym;)Ljava/util/Optional;
-
equals
-
hashCode
public int hashCode() -
toString
-
getKey
- Mappings:
Namespace Name Mixin selector named getKey
Lnet/minecraft/text/KeybindTextContent;getKey()Ljava/lang/String;
intermediary method_10901
Lnet/minecraft/class_2572;method_10901()Ljava/lang/String;
official b
Lyt;b()Ljava/lang/String;
-
getType
- Specified by:
getType
in interfaceTextContent
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
intermediary method_54163
Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;
official a
Lxq;a()Lxq$a;
-