net.minecraft.network.chat.contents

public class KeybindContents

implements ComponentContents

yd
net.minecraft.network.chat.contents.KeybindContents
net.minecraft.class_2572
net.minecraft.text.KeybindTextContent
net.minecraft.src.C_213516_
net.minecraft.network.chat.contents.KeybindContents

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<KeybindContents>
a
CODEC
field_46619
CODEC
f_303682_
public static final ComponentContents$Type<KeybindContents>
b
TYPE
field_46620
TYPE
f_302328_
private final String
c
name
field_11767
key
f_237344_
private Supplier<Component>
d
nameResolver
field_11768
translated
f_237345_

Constructor summary

ModifierConstructor
public (String key)

Method summary

Modifier and TypeMethod
private Component
c()
getNestedComponent()
method_27691()
getTranslated()
m_237354_()
public <T> Optional<T>
a(xe$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
m_213874_(C_5000_$C_5005_<T> arg0)
public <T> Optional<T>
a(xe$b<T> arg0, xw arg1)
visit(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27660(class_5348$class_5246<T> arg0, class_2583 arg1)
visit(StringVisitable$StyledVisitor<T> arg0, Style arg1)
m_213724_(C_5000_$C_5006_<T> p_237353_, C_5020_ arg1)
public String
b()
getName()
method_10901()
getKey()
m_237348_()
public ComponentContents$Type<?>
a()
type()
method_54163()
getType()
m_304650_()