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 wj
intermediary net/minecraft/class_2572
named net/minecraft/text/KeybindTextContent
-
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 official a
Lwj;a:Lcom/mojang/serialization/MapCodec;
intermediary field_46619
Lnet/minecraft/class_2572;field_46619:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/text/KeybindTextContent;CODEC:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector official b
Lwj;b:Lvg$a;
intermediary field_46620
Lnet/minecraft/class_2572;field_46620:Lnet/minecraft/class_7417$class_8823;
named TYPE
Lnet/minecraft/text/KeybindTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;
-
key
- Mappings:
Namespace Name Mixin selector official c
Lwj;c: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 d
Lwj;d: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>
Lwj;<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 c
Lwj;c()Lvf;
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
Lvg;a(Lvk$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
Lvg;a(Lvk$b;Lwc;)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 b
Lwj;b()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;
-
getType
- Specified by:
getType
in interfaceTextContent
- Mappings:
Namespace Name Mixin selector official a
Lvg;a()Lvg$a;
intermediary method_54163
Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;
named getType
Lnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
-