net.minecraft.advancements.critereon

public record ItemDamagePredicate

implements SingleComponentItemPredicate<Integer>

cn
net.minecraft.advancements.critereon.ItemDamagePredicate
net.minecraft.class_9355
net.minecraft.predicate.item.DamagePredicate
net.minecraft.advancements.critereon.ItemDamagePredicate

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public DataComponentType<Integer>
a()
componentType()
method_58163()
getComponentType()
public boolean
a(cxp arg0, Integer arg1)
matches(ItemStack arg0, Integer arg1)
method_58166(class_1799 arg0, Integer arg1)
test(ItemStack arg0, Integer arg1)
public static ItemDamagePredicate
a(dj$d arg0)
durability(MinMaxBounds$Ints arg0)
method_58165(class_2096$class_2100 arg0)
durability(NumberRange$IntRange durability)
public MinMaxBounds$Ints
b()
durability()
comp_2459()
durability()
public MinMaxBounds$Ints
c()
damage()
comp_2460()
damage()