Uses of Record Class
net.minecraft.advancements.critereon.EntityPredicate
Package
Description
-
Uses of EntityPredicate in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityPredicate>
EntityPredicate.CODEC
private Optional<EntityPredicate>
DamageSourcePredicate.Builder.directEntity
private final Optional<EntityPredicate>
DamageSourcePredicate.directEntity
The field for thedirectEntity
record component.private final Optional<EntityPredicate>
LightningBoltPredicate.entityStruck
The field for theentityStruck
record component.private Optional<EntityPredicate>
PlayerPredicate.Builder.lookingAt
private final Optional<EntityPredicate>
PlayerPredicate.lookingAt
The field for thelookingAt
record component.private Optional<EntityPredicate>
EntityPredicate.Builder.passenger
private final Optional<EntityPredicate>
EntityPredicate.passenger
The field for thepassenger
record component.private Optional<EntityPredicate>
DamagePredicate.Builder.sourceEntity
private final Optional<EntityPredicate>
DamagePredicate.sourceEntity
The field for thesourceEntity
record component.private Optional<EntityPredicate>
DamageSourcePredicate.Builder.sourceEntity
private final Optional<EntityPredicate>
DamageSourcePredicate.sourceEntity
The field for thesourceEntity
record component.private Optional<EntityPredicate>
EntityPredicate.Builder.targetedEntity
private final Optional<EntityPredicate>
EntityPredicate.targetedEntity
The field for thetargetedEntity
record component.private Optional<EntityPredicate>
EntityPredicate.Builder.vehicle
private final Optional<EntityPredicate>
EntityPredicate.vehicle
The field for thevehicle
record component.Modifier and TypeMethodDescriptionDamageSourcePredicate.directEntity()
Returns the value of thedirectEntity
record component.LightningBoltPredicate.entityStruck()
Returns the value of theentityStruck
record component.static Optional<EntityPredicate>
EntityPredicate.fromJson
(com.google.gson.JsonElement p_297667_) PlayerPredicate.lookingAt()
Returns the value of thelookingAt
record component.EntityPredicate.passenger()
Returns the value of thepassenger
record component.DamagePredicate.sourceEntity()
Returns the value of thesourceEntity
record component.DamageSourcePredicate.sourceEntity()
Returns the value of thesourceEntity
record component.EntityPredicate.targetedEntity()
Returns the value of thetargetedEntity
record component.EntityPredicate.vehicle()
Returns the value of thevehicle
record component.Modifier and TypeMethodDescriptionDamagePredicate.Builder.sourceEntity
(EntityPredicate p_148144_) static ContextAwarePredicate
EntityPredicate.wrap
(EntityPredicate p_286570_) Modifier and TypeMethodDescriptionBredAnimalsTrigger.TriggerInstance.bredAnimals
(Optional<EntityPredicate> p_298213_, Optional<EntityPredicate> p_299258_, Optional<EntityPredicate> p_297439_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_300543_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_297719_, Optional<DamageSourcePredicate> p_298112_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_297520_, DamageSourcePredicate.Builder p_299317_) LightningStrikeTrigger.TriggerInstance.lightningStrike
(Optional<EntityPredicate> p_301310_, Optional<EntityPredicate> p_299336_) PlayerTrigger.TriggerInstance.located
(Optional<EntityPredicate> p_301210_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(Optional<EntityPredicate> p_297304_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(DamagePredicate.Builder p_300965_, Optional<EntityPredicate> p_298699_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_299523_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_299572_, Optional<DamageSourcePredicate> p_297245_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_300641_, DamageSourcePredicate.Builder p_300954_) static Optional<ContextAwarePredicate>
EntityPredicate.wrap
(Optional<EntityPredicate> p_300980_) ModifierConstructorDescriptionDamagePredicate
(MinMaxBounds.Doubles dealtDamage, MinMaxBounds.Doubles takenDamage, Optional<EntityPredicate> sourceEntity, Optional<Boolean> blocked, Optional<DamageSourcePredicate> type) Creates an instance of aDamagePredicate
record class.DamageSourcePredicate
(List<TagPredicate<DamageType>> tags, Optional<EntityPredicate> directEntity, Optional<EntityPredicate> sourceEntity) Creates an instance of aDamageSourcePredicate
record class.LightningBoltPredicate
(MinMaxBounds.Ints blocksSetOnFire, Optional<EntityPredicate> entityStruck) Creates an instance of aLightningBoltPredicate
record class. -
Uses of EntityPredicate in net.minecraft.data.advancements.packs
Modifier and TypeMethodDescriptionprivate static Criterion<LightningStrikeTrigger.TriggerInstance>
VanillaAdventureAdvancements.fireCountAndBystander
(MinMaxBounds.Ints p_252298_, Optional<EntityPredicate> p_300450_) -
Uses of EntityPredicate in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeFieldDescriptionprivate final Optional<EntityPredicate>
LootItemEntityPropertyCondition.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionLootItemEntityPropertyCondition.predicate()
Returns the value of thepredicate
record component.Modifier and TypeMethodDescriptionstatic LootItemCondition.Builder
LootItemEntityPropertyCondition.hasProperties
(LootContext.EntityTarget p_81868_, EntityPredicate p_81869_) ModifierConstructorDescriptionLootItemEntityPropertyCondition
(Optional<EntityPredicate> predicate, LootContext.EntityTarget entityTarget) Creates an instance of aLootItemEntityPropertyCondition
record class.