Uses of Record Class
net.minecraft.advancements.critereon.DamageSourcePredicate
Packages that use DamageSourcePredicate
Package
Description
-
Uses of DamageSourcePredicate in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type DamageSourcePredicateModifier 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.Methods in net.minecraft.advancements.critereon that return DamageSourcePredicateMethods in net.minecraft.advancements.critereon that return types with arguments of type DamageSourcePredicateModifier and TypeMethodDescriptionKilledTrigger.TriggerInstance.killingBlow()
Returns the value of thekillingBlow
record component.DamagePredicate.type()
Returns the value of thetype
record component.Methods in net.minecraft.advancements.critereon with parameters of type DamageSourcePredicateMethod parameters in net.minecraft.advancements.critereon with type arguments of type DamageSourcePredicateModifier 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
Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type DamageSourcePredicateModifier and TypeFieldDescriptionprivate final Optional
<DamageSourcePredicate> DamageSourceCondition.predicate
The field for thepredicate
record component.Methods in net.minecraft.world.level.storage.loot.predicates that return types with arguments of type DamageSourcePredicateModifier and TypeMethodDescriptionDamageSourceCondition.predicate()
Returns the value of thepredicate
record component.Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type DamageSourcePredicateModifierConstructorDescriptionDamageSourceCondition
(Optional<DamageSourcePredicate> predicate) Creates an instance of aDamageSourceCondition
record class.