Uses of Record Class
net.minecraft.predicate.entity.DamageSourcePredicate
Package
Description
-
Uses of DamageSourcePredicate in net.minecraft.advancement.criterion
Modifier and TypeFieldDescriptionprivate final Optional<DamageSourcePredicate>
OnKilledCriterion.Conditions.killingBlow
Modifier and TypeMethodDescriptionOnKilledCriterion.Conditions.createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) OnKilledCriterion.Conditions.createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) -
Uses of DamageSourcePredicate in net.minecraft.loot.condition
Modifier and TypeFieldDescriptionprivate final Optional<DamageSourcePredicate>
DamageSourcePropertiesLootCondition.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionDamageSourcePropertiesLootCondition.predicate()
Returns the value of thepredicate
record component.ModifierConstructorDescription -
Uses of DamageSourcePredicate in net.minecraft.predicate
Modifier and TypeFieldDescriptionprivate final Optional<DamageSourcePredicate>
DamagePredicate.source
The field for thesource
record component.private Optional<DamageSourcePredicate>
DamagePredicate.Builder.type
Modifier and TypeMethodDescriptionDamagePredicate.source()
Returns the value of thesource
record component. -
Uses of DamageSourcePredicate in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DamageSourcePredicate>
DamageSourcePredicate.CODEC
Modifier and TypeMethodDescriptionstatic Optional<DamageSourcePredicate>
DamageSourcePredicate.fromJson
(@Nullable com.google.gson.JsonElement json)