net.minecraft.advancements.critereon

public record DamagePredicate

bi
net.minecraft.advancements.critereon.DamagePredicate
net.minecraft.class_2019
net.minecraft.predicate.DamagePredicate
net.minecraft.src.C_665_
net.minecraft.advancements.critereon.CriterionConditionDamage

Field summary

Modifier and TypeField
private final MinMaxBounds$Doubles
b
dealtDamage
comp_1735
dealt
f_24903_
private final MinMaxBounds$Doubles
c
takenDamage
comp_1736
taken
f_24904_
private final Optional<EntityPredicate>
d
sourceEntity
comp_1737
sourceEntity
f_24905_
private final Optional<Boolean>
e
blocked
comp_1738
blocked
f_24906_
private final Optional<DamageSourcePredicate>
f
type
comp_1739
type
f_24907_
public static final com.mojang.serialization.Codec<DamagePredicate>
a
CODEC
field_47238
CODEC
f_303816_

Constructor summary

ModifierConstructor
public (MinMaxBounds$Doubles dealt, MinMaxBounds$Doubles taken, Optional<EntityPredicate> blocked, Optional<Boolean> type, Optional<DamageSourcePredicate> arg4)

Method summary

Modifier and TypeMethod
public boolean
a(arg arg0, brp arg1, float arg2, float arg3, boolean arg4)
matches(ServerPlayer arg0, DamageSource arg1, float arg2, float arg3, boolean arg4)
method_8838(class_3222 arg0, class_1282 arg1, float arg2, float arg3, boolean arg4)
test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
m_24917_(C_13_ p_24919_, C_489_ p_24920_, float p_24921_, float p_24922_, boolean arg4)
public MinMaxBounds$Doubles
a()
dealtDamage()
comp_1735()
dealt()
f_24903_()
public MinMaxBounds$Doubles
b()
takenDamage()
comp_1736()
taken()
f_24904_()
public Optional<EntityPredicate>
c()
sourceEntity()
comp_1737()
sourceEntity()
f_24905_()
public Optional<Boolean>
d()
blocked()
comp_1738()
blocked()
f_24906_()
public Optional<DamageSourcePredicate>
e()
type()
comp_1739()
type()
f_24907_()