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

public record HasComponent

implements ConditionalItemModelProperty

hfh
net.minecraft.client.renderer.item.properties.conditional.HasComponent
net.minecraft.class_10464
net.minecraft.client.render.item.property.bool.HasComponentProperty

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
get(cys arg0, gjd arg1, bwz arg2, int arg3, cyq 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)
public com.mojang.serialization.MapCodec<HasComponent>
a()
type()
method_65637()
getCodec()
public DataComponentType<?>
b()
componentType()
comp_3408()
componentType()
public boolean
c()
ignoreDefault()
comp_3438()
ignoreDefault()