Uses of Record Class
net.minecraft.advancements.critereon.DamageSourcePredicate
Package
Description
-
Uses of DamageSourcePredicate in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DamageSourcePredicate>
DamageSourcePredicate.CODEC
private final Optional<DamageSourcePredicate>
KilledTrigger.TriggerInstance.killingBlow
The field for thekillingBlow
record component.private Optional<DamageSourcePredicate>
DamagePredicate.Builder.type
private final Optional<DamageSourcePredicate>
DamagePredicate.type
The field for thetype
record component.Modifier and TypeMethodDescriptionKilledTrigger.TriggerInstance.killingBlow()
Returns the value of thekillingBlow
record component.DamagePredicate.type()
Returns the value of thetype
record component.Modifier and TypeMethodDescriptionKilledTrigger.TriggerInstance.entityKilledPlayer
(EntityPredicate.Builder p_152119_, Optional<DamageSourcePredicate> p_301181_) KilledTrigger.TriggerInstance.playerKilledEntity
(EntityPredicate.Builder p_300879_, Optional<DamageSourcePredicate> p_298956_) -
Uses of DamageSourcePredicate in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeFieldDescriptionprivate final Optional<DamageSourcePredicate>
DamageSourceCondition.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionDamageSourceCondition.predicate()
Returns the value of thepredicate
record component.ModifierConstructorDescriptionDamageSourceCondition
(Optional<DamageSourcePredicate> predicate) Creates an instance of aDamageSourceCondition
record class.