net.minecraft.network.chat.contents

public class KeybindContents

implements ComponentContents

yz
net.minecraft.network.chat.contents.KeybindContents
net.minecraft.class_2572
net.minecraft.text.KeybindTextContent
net.minecraft.network.chat.contents.KeybindContents

Field summary

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

Constructor summary

ModifierConstructor
public (String key)

Method summary

Modifier and TypeMethod
private Component
c()
getNestedComponent()
method_27691()
getTranslated()
public <T> Optional<T>
a(ya$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
public <T> Optional<T>
a(ya$b<T> arg0, ys 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)
public String
b()
getName()
method_10901()
getKey()
public ComponentContents$Type<?>
a()
type()
method_54163()
getType()