net.minecraft.advancements.critereon

public record ItemDamagePredicate

implements SingleComponentItemPredicate<Integer>

cl
net.minecraft.advancements.critereon.ItemDamagePredicate
net.minecraft.class_9355
net.minecraft.predicate.item.DamagePredicate
net.minecraft.src.C_313767_
net.minecraft.advancements.critereon.ItemDamagePredicate

Field summary

Modifier and TypeField
private final MinMaxBounds$Ints
c
durability
comp_2459
durability
f_316616_
private final MinMaxBounds$Ints
d
damage
comp_2460
damage
f_314782_
public static final com.mojang.serialization.Codec<ItemDamagePredicate>
a
CODEC
field_49798
CODEC
f_314810_

Constructor summary

ModifierConstructor
public (MinMaxBounds$Ints damage, MinMaxBounds$Ints arg1)

Method summary

Modifier and TypeMethod
public DataComponentType<Integer>
a()
componentType()
method_58163()
getComponentType()
m_318698_()
public boolean
a(cuq arg0, Integer arg1)
matches(ItemStack arg0, Integer arg1)
method_58166(class_1799 arg0, Integer arg1)
test(ItemStack arg0, Integer arg1)
m_318913_(C_1391_ p_329961_, Integer arg1)
public static ItemDamagePredicate
a(dh$d arg0)
durability(MinMaxBounds$Ints arg0)
method_58165(class_2096$class_2100 arg0)
durability(NumberRange$IntRange durability)
m_320968_(C_1863_$C_1867_ p_335837_)
public MinMaxBounds$Ints
b()
durability()
comp_2459()
durability()
f_316616_()
public MinMaxBounds$Ints
c()
damage()
comp_2460()
damage()
f_314782_()