net.minecraft.client.renderer.item.properties.conditional

public record HasComponent

implements ConditionalItemModelProperty

hcd
net.minecraft.client.renderer.item.properties.conditional.HasComponent
net.minecraft.class_10464
net.minecraft.client.render.item.property.bool.HasComponentProperty
net.minecraft.src.C_370271_

Field summary

Modifier and TypeField
private final DataComponentType<?>
b
componentType
comp_3408
componentType
f_371471_
private final boolean
c
ignoreDefault
comp_3438
ignoreDefault
f_371575_
public static final com.mojang.serialization.MapCodec<HasComponent>
a
MAP_CODEC
field_55376
CODEC
f_371239_

Constructor summary

ModifierConstructor
public (DataComponentType<?> ignoreDefault, boolean arg1)

Method summary

Modifier and TypeMethod
public boolean
a(cwq arg0, gga arg1, bvi arg2, int arg3, cwo arg4)
get(ItemStack arg0, ClientLevel arg1, LivingEntity arg2, int arg3, ItemDisplayContext arg4)
method_65638(class_1799 arg0, class_638 arg1, class_1309 arg2, int arg3, class_811 arg4)
getValue(ItemStack arg0, ClientWorld arg1, LivingEntity arg2, int arg3, ModelTransformationMode arg4)
m_372182_(C_1391_ p_376454_, C_3899_ p_377963_, C_524_ p_375694_, int p_375575_, C_268388_ arg4)
public com.mojang.serialization.MapCodec<HasComponent>
a()
type()
method_65637()
getCodec()
m_372356_()
public DataComponentType<?>
b()
componentType()
comp_3408()
componentType()
f_371471_()
public boolean
c()
ignoreDefault()
comp_3438()
ignoreDefault()
f_371575_()