net.minecraft.predicate.item

public record DamagePredicate

implements ComponentPredicate

net.minecraft.core.component.predicates.DamagePredicate
net.minecraft.class_9355
net.minecraft.predicate.item.DamagePredicate

Field summary

Modifier and TypeField
private final NumberRange$IntRange
durability
comp_2459
durability
private final NumberRange$IntRange
damage
comp_2460
damage
public static final com.mojang.serialization.Codec<DamagePredicate>
CODEC
field_49798
CODEC

Constructor summary

ModifierConstructor
public (NumberRange$IntRange durability, NumberRange$IntRange damage)

Method summary

Modifier and TypeMethod
public boolean
matches(DataComponentGetter components)
method_58161(class_9473 arg0)
test(ComponentsAccess arg0)
public static DamagePredicate
durability(MinMaxBounds$Ints range)
method_58165(class_2096$class_2100 arg0)
durability(NumberRange$IntRange durability)
public NumberRange$IntRange
durability()
comp_2459()
durability()
public NumberRange$IntRange
damage()
comp_2460()
damage()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_58164(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_58164(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)