net.minecraft.advancements.critereon

public record DamageSourcePredicate

bm
net.minecraft.advancements.critereon.DamageSourcePredicate
net.minecraft.class_2022
net.minecraft.predicate.entity.DamageSourcePredicate
net.minecraft.advancements.critereon.CriterionConditionDamageSource

Field summary

Modifier and TypeField
private final List<TagPredicate<DamageType>>
b
tags
comp_1740
tags
private final Optional<EntityPredicate>
c
directEntity
comp_1741
directEntity
private final Optional<EntityPredicate>
d
sourceEntity
comp_1742
sourceEntity
private final Optional<Boolean>
e
isDirect
comp_2793
isDirect
public static final com.mojang.serialization.Codec<DamageSourcePredicate>
a
CODEC
field_45727
CODEC

Constructor summary

ModifierConstructor
public (List<TagPredicate<DamageType>> tagPredicates, Optional<EntityPredicate> arg1, Optional<EntityPredicate> arg2, Optional<Boolean> arg3)

Method summary

Modifier and TypeMethod
public boolean
a(are arg0, btc arg1)
matches(ServerPlayer arg0, DamageSource arg1)
method_8847(class_3222 arg0, class_1282 arg1)
test(ServerPlayerEntity player, DamageSource damageSource)
public boolean
a(ard arg0, fbb arg1, btc arg2)
matches(ServerLevel arg0, Vec3 arg1, DamageSource arg2)
method_8845(class_3218 arg0, class_243 arg1, class_1282 arg2)
test(ServerWorld world, Vec3d pos, DamageSource damageSource)
public List<TagPredicate<DamageType>>
a()
tags()
comp_1740()
tags()
public Optional<EntityPredicate>
b()
directEntity()
comp_1741()
directEntity()
public Optional<EntityPredicate>
c()
sourceEntity()
comp_1742()
sourceEntity()
public Optional<Boolean>
d()
isDirect()
comp_2793()
isDirect()