Package net.minecraft.util.text
Class KeybindTextComponent
java.lang.Object
net.minecraft.util.text.TextComponent
net.minecraft.util.text.KeybindTextComponent
- All Implemented Interfaces:
com.mojang.brigadier.Message
,IFormattableTextComponent
,ITextComponent
,ITextProperties
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.Serializer
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Function<String,
Supplier<ITextComponent>> private final String
private Supplier<ITextComponent>
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
private ITextComponent
static void
setKeyResolver
(Function<String, Supplier<ITextComponent>> p_240696_0_) toString()
<T> Optional<T>
visitSelf
(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_) <T> Optional<T>
visitSelf
(ITextProperties.ITextAcceptor<T> p_230533_1_) Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.text.IFormattableTextComponent
append, withStyle, withStyle, withStyle, withStyle
Methods inherited from interface net.minecraft.util.text.ITextComponent
getString, getString, visit, visit
-
Field Details
-
keyResolver
-
name
-
nameResolver
-
-
Constructor Details
-
KeybindTextComponent
-
-
Method Details
-
setKeyResolver
-
getNestedComponent
-
visitSelf
-
visitSelf
public <T> Optional<T> visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_) -
plainCopy
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
equals
- Overrides:
equals
in classTextComponent
-
toString
- Overrides:
toString
in classTextComponent
-
getName
-