net.minecraft.network.chat

public class KeybindComponent

extends BaseComponent

All mapped superinterfaces:

MutableComponent, Component, FormattedText

nw
net.minecraft.network.chat.KeybindComponent
net.minecraft.class_2572
net.minecraft.text.KeybindText
net.minecraft.util.text.KeybindTextComponent
net.minecraft.server.v1_16_R2.ChatComponentKeybind

Field summary

Modifier and TypeField
private static Function<String, Supplier<Component>>
d
keyResolver
field_11766
translator
field_193637_b
private final String
e
name
field_11767
key
field_193638_c
private Supplier<Component>
f
nameResolver
field_11768
translated
field_193639_d

Constructor summary

ModifierConstructor
public (String key)

Method summary

Modifier and TypeMethod
private Component
j()
getNestedComponent()
method_27691()
getTranslated()
func_240698_i_()
public <T> Optional<T>
b(nu$a<T> arg0)
visitSelf(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visitSelf(StringVisitable$Visitor<T> arg0)
func_230533_b_(ITextProperties$ITextAcceptor<T> arg0)
public KeybindComponent
h()
plainCopy()
method_10902()
copy()
func_230531_f_()
public String
i()
getName()
method_10901()
getKey()
func_193633_h()
public static void
a(Function<String, Supplier<nr>> arg0)
setKeyResolver(Function<String, Supplier<Component>> arg0)
method_27690(Function<String, Supplier<class_2561>> arg0)
setTranslator(Function<String, Supplier<Text>> translator)
func_240696_a_(Function<String, Supplier<ITextComponent>> arg0)
public <T> Optional<T>
b(nu$b<T> arg0, ob arg1)
visitSelf(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27660(class_5348$class_5246<T> arg0, class_2583 arg1)
visitSelf(StringVisitable$StyledVisitor<T> arg0, Style arg1)
func_230534_b_(ITextProperties$IStyledTextAcceptor<T> arg0, Style arg1)