net.minecraft.world.item.component

public record TooltipDisplay

dcr
net.minecraft.world.item.component.TooltipDisplay
net.minecraft.class_10712
net.minecraft.component.type.TooltipDisplayComponent

Field summary

Modifier and TypeField
private final boolean
d
hideTooltip
comp_3600
hideTooltip
private final SequencedSet<DataComponentType<?>>
e
hiddenComponents
comp_3601
hiddenComponents
private static final com.mojang.serialization.Codec<SequencedSet<DataComponentType<?>>>
f
COMPONENT_SET_CODEC
field_56319
HIDDEN_COMPONENTS_CODEC
public static final com.mojang.serialization.Codec<TooltipDisplay>
a
CODEC
field_56316
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, TooltipDisplay>
b
STREAM_CODEC
field_56317
PACKET_CODEC
public static final TooltipDisplay
c
DEFAULT
field_56318
DEFAULT

Constructor summary

ModifierConstructor
public (boolean arg0, SequencedSet<DataComponentType<?>> arg1)

Method summary

Modifier and TypeMethod
public TooltipDisplay
a(kj<?> arg0, boolean arg1)
withHidden(DataComponentType<?> arg0, boolean arg1)
method_67215(class_9331<?> arg0, boolean arg1)
with(ComponentType<?> component, boolean hidden)
public boolean
a(kj<?> arg0)
shows(DataComponentType<?> arg0)
method_67214(class_9331<?> arg0)
shouldDisplay(ComponentType<?> component)
public boolean
a()
hideTooltip()
comp_3600()
hideTooltip()
public SequencedSet<DataComponentType<?>>
b()
hiddenComponents()
comp_3601()
hiddenComponents()