Package net.minecraft.text
Class KeybindText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.KeybindText
- All Implemented Interfaces:
com.mojang.brigadier.Message
,MutableText
,StringVisitable
,Text
- Mappings:
Namespace Name official py
intermediary net/minecraft/class_2572
named net/minecraft/text/KeybindText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
Nested classes/interfaces inherited from interface net.minecraft.text.Text
Text.Serializer
-
Field Summary
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies the text itself, excluding the styles or siblings.boolean
getKey()
private Text
static void
setTranslator
(Function<String, Supplier<Text>> translator) toString()
<T> Optional<T>
visitSelf
(StringVisitable.StyledVisitor<T> visitor, Style style) Visits the text itself.<T> Optional<T>
visitSelf
(StringVisitable.Visitor<T> visitor) Visits the text itself.Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, getSiblings, getStyle, hashCode, setStyle, shallowCopy
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.text.MutableText
append, fillStyle, formatted, formatted, styled
Methods inherited from interface net.minecraft.text.Text
asTruncatedString, getString, getWithStyle, visit, visit
-
Field Details
-
translator
- Mappings:
Namespace Name Mixin selector official d
Lpy;d:Ljava/util/function/Function;
intermediary field_11766
Lnet/minecraft/class_2572;field_11766:Ljava/util/function/Function;
named translator
Lnet/minecraft/text/KeybindText;translator:Ljava/util/function/Function;
-
key
- Mappings:
Namespace Name Mixin selector official e
Lpy;e:Ljava/lang/String;
intermediary field_11767
Lnet/minecraft/class_2572;field_11767:Ljava/lang/String;
named key
Lnet/minecraft/text/KeybindText;key:Ljava/lang/String;
-
translated
- Mappings:
Namespace Name Mixin selector official f
Lpy;f:Ljava/util/function/Supplier;
intermediary field_11768
Lnet/minecraft/class_2572;field_11768:Ljava/util/function/Supplier;
named translated
Lnet/minecraft/text/KeybindText;translated:Ljava/util/function/Supplier;
-
-
Constructor Details
-
KeybindText
- Mappings:
Namespace Name Mixin selector official <init>
Lpy;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2572;<init>(Ljava/lang/String;)V
named <init>
Lnet/minecraft/text/KeybindText;<init>(Ljava/lang/String;)V
-
-
Method Details
-
setTranslator
- Mappings:
Namespace Name Mixin selector official a
Lpy;a(Ljava/util/function/Function;)V
intermediary method_27690
Lnet/minecraft/class_2572;method_27690(Ljava/util/function/Function;)V
named setTranslator
Lnet/minecraft/text/KeybindText;setTranslator(Ljava/util/function/Function;)V
-
getTranslated
- Mappings:
Namespace Name Mixin selector official j
Lpy;j()Lpt;
intermediary method_27691
Lnet/minecraft/class_2572;method_27691()Lnet/minecraft/class_2561;
named getTranslated
Lnet/minecraft/text/KeybindText;getTranslated()Lnet/minecraft/text/Text;
-
visitSelf
Visits the text itself.- Parameters:
visitor
- the visitor- Returns:
- the visitor's return value
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lpt;b(Lpw$a;)Ljava/util/Optional;
intermediary method_27659
Lnet/minecraft/class_2561;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
named visitSelf
Lnet/minecraft/text/Text;visitSelf(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
-
visitSelf
Visits the text itself.- Parameters:
visitor
- the visitorstyle
- the current style- Returns:
- the visitor's return value
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lpt;b(Lpw$b;Lqd;)Ljava/util/Optional;
intermediary method_27660
Lnet/minecraft/class_2561;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;
named visitSelf
Lnet/minecraft/text/Text;visitSelf(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
-
copy
Description copied from interface:Text
Copies the text itself, excluding the styles or siblings.- Specified by:
copy
in interfaceText
- Specified by:
copy
in classBaseText
- Mappings:
Namespace Name Mixin selector official h
Lpy;h()Lpy;
intermediary method_10902
Lnet/minecraft/class_2572;method_10902()Lnet/minecraft/class_2572;
named copy
Lnet/minecraft/text/KeybindText;copy()Lnet/minecraft/text/KeybindText;
-
equals
-
toString
-
getKey
- Mappings:
Namespace Name Mixin selector official i
Lpy;i()Ljava/lang/String;
intermediary method_10901
Lnet/minecraft/class_2572;method_10901()Ljava/lang/String;
named getKey
Lnet/minecraft/text/KeybindText;getKey()Ljava/lang/String;
-