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
public class KeybindTextComponent extends TextComponent
-
-
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
Fields Modifier and Type Field Description private static java.util.function.Function<java.lang.String,java.util.function.Supplier<ITextComponent>>
keyResolver
private java.lang.String
name
private java.util.function.Supplier<ITextComponent>
nameResolver
-
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
-
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
-
Constructor Summary
Constructors Constructor Description KeybindTextComponent(java.lang.String p_i47521_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
getName()
private ITextComponent
getNestedComponent()
KeybindTextComponent
plainCopy()
static void
setKeyResolver(java.util.function.Function<java.lang.String,java.util.function.Supplier<ITextComponent>> p_240696_0_)
java.lang.String
toString()
<T> java.util.Optional<T>
visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_)
<T> java.util.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 Detail
-
keyResolver
private static java.util.function.Function<java.lang.String,java.util.function.Supplier<ITextComponent>> keyResolver
-
name
private final java.lang.String name
-
nameResolver
private java.util.function.Supplier<ITextComponent> nameResolver
-
-
Method Detail
-
setKeyResolver
public static void setKeyResolver(java.util.function.Function<java.lang.String,java.util.function.Supplier<ITextComponent>> p_240696_0_)
-
getNestedComponent
private ITextComponent getNestedComponent()
-
visitSelf
public <T> java.util.Optional<T> visitSelf(ITextProperties.ITextAcceptor<T> p_230533_1_)
-
visitSelf
public <T> java.util.Optional<T> visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_)
-
plainCopy
public KeybindTextComponent plainCopy()
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classTextComponent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTextComponent
-
getName
public java.lang.String getName()
-
-