Uses of Record Class
net.minecraft.advancements.critereon.EntityPredicate
Package
Description
Classes for NeoForge's own data generation.
-
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.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_301067_, Optional<EntityPredicate> p_301159_, Optional<EntityPredicate> p_301056_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_298209_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_298878_, Optional<DamageSourcePredicate> p_300913_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_301135_, DamageSourcePredicate.Builder p_301143_) LightningStrikeTrigger.TriggerInstance.lightningStrike
(Optional<EntityPredicate> p_301078_, Optional<EntityPredicate> p_301001_) PlayerTrigger.TriggerInstance.located
(Optional<EntityPredicate> p_301141_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(Optional<EntityPredicate> p_298252_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(DamagePredicate.Builder p_301281_, Optional<EntityPredicate> p_298362_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_298999_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_300920_, Optional<DamageSourcePredicate> p_300985_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_299297_, DamageSourcePredicate.Builder p_301016_) static Optional
<ContextAwarePredicate> EntityPredicate.wrap
(Optional<EntityPredicate> p_298604_) 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, Optional<Boolean> isDirect) Creates an instance of aDamageSourcePredicate
record class.LightningBoltPredicate
(MinMaxBounds.Ints blocksSetOnFire, Optional<EntityPredicate> entityStruck) Creates an instance of aLightningBoltPredicate
record class.PlayerPredicate
(MinMaxBounds.Ints level, GameTypePredicate gameType, List<PlayerPredicate.StatMatcher<?>> stats, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> recipes, Map<ResourceLocation, PlayerPredicate.AdvancementPredicate> advancements, Optional<EntityPredicate> lookingAt) Creates an instance of aPlayerPredicate
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_299106_) -
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. -
Uses of EntityPredicate in net.neoforged.neoforge.common.data.internal
Modifier and TypeMethodDescriptionprivate static BiFunction
<Criterion<?>, HolderLookup.Provider, Criterion<?>> NeoForgeAdvancementProvider.replaceWearingPredicate
(EntityPredicate replacement, Predicate<EntityEquipmentPredicate> shouldReplace)