Uses of Class
net.minecraft.advancements.critereon.ContextAwarePredicate
Packages that use ContextAwarePredicate
Package
Description
Classes for NeoForge's own data generation.
-
Uses of ContextAwarePredicate in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type ContextAwarePredicateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ContextAwarePredicate> EntityPredicate.ADVANCEMENT_CODEC
private final Optional
<ContextAwarePredicate> LightningStrikeTrigger.TriggerInstance.bystander
The field for thebystander
record component.private final Optional
<ContextAwarePredicate> FallAfterExplosionTrigger.TriggerInstance.cause
The field for thecause
record component.private final Optional
<ContextAwarePredicate> BredAnimalsTrigger.TriggerInstance.child
The field for thechild
record component.static final com.mojang.serialization.Codec
<ContextAwarePredicate> ContextAwarePredicate.CODEC
private final Optional
<ContextAwarePredicate> FishingRodHookedTrigger.TriggerInstance.entity
The field for theentity
record component.private final Optional
<ContextAwarePredicate> PickedUpItemTrigger.TriggerInstance.entity
The field for theentity
record component.private final Optional
<ContextAwarePredicate> PlayerHurtEntityTrigger.TriggerInstance.entity
The field for theentity
record component.private final Optional
<ContextAwarePredicate> PlayerInteractTrigger.TriggerInstance.entity
The field for theentity
record component.private final Optional
<ContextAwarePredicate> SummonedEntityTrigger.TriggerInstance.entity
The field for theentity
record component.private final Optional
<ContextAwarePredicate> TameAnimalTrigger.TriggerInstance.entity
The field for theentity
record component.private final Optional
<ContextAwarePredicate> KilledTrigger.TriggerInstance.entityPredicate
The field for theentityPredicate
record component.private final Optional
<ContextAwarePredicate> LightningStrikeTrigger.TriggerInstance.lightning
The field for thelightning
record component.private final Optional
<ContextAwarePredicate> AnyBlockInteractionTrigger.TriggerInstance.location
The field for thelocation
record component.private final Optional
<ContextAwarePredicate> DefaultBlockInteractionTrigger.TriggerInstance.location
The field for thelocation
record component.private final Optional
<ContextAwarePredicate> ItemUsedOnLocationTrigger.TriggerInstance.location
The field for thelocation
record component.private final Optional
<ContextAwarePredicate> BredAnimalsTrigger.TriggerInstance.parent
The field for theparent
record component.private final Optional
<ContextAwarePredicate> BredAnimalsTrigger.TriggerInstance.partner
The field for thepartner
record component.private final Optional
<ContextAwarePredicate> AnyBlockInteractionTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> BeeNestDestroyedTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> BredAnimalsTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> BrewedPotionTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ChangeDimensionTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ChanneledLightningTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ConstructBeaconTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ConsumeItemTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> CuredZombieVillagerTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> DefaultBlockInteractionTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> DistanceTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> EffectsChangedTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> EnchantedItemTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> EnterBlockTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> EntityHurtPlayerTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> FallAfterExplosionTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> FilledBucketTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> FishingRodHookedTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> InventoryChangeTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ItemDurabilityTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ItemUsedOnLocationTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> KilledByCrossbowTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> KilledTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> LevitationTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> LightningStrikeTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> LootTableTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> PickedUpItemTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> PlayerHurtEntityTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> PlayerInteractTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> PlayerTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> RecipeCraftedTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> RecipeUnlockedTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> ShotCrossbowTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> SlideDownBlockTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> StartRidingTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> SummonedEntityTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> TameAnimalTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> TargetBlockTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> TradeTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> UsedEnderEyeTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> UsedTotemTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> UsingItemTrigger.TriggerInstance.player
The field for theplayer
record component.private final Optional
<ContextAwarePredicate> TargetBlockTrigger.TriggerInstance.projectile
The field for theprojectile
record component.private final Optional
<ContextAwarePredicate> EffectsChangedTrigger.TriggerInstance.source
The field for thesource
record component.private final List
<ContextAwarePredicate> ChanneledLightningTrigger.TriggerInstance.victims
The field for thevictims
record component.private final List
<ContextAwarePredicate> KilledByCrossbowTrigger.TriggerInstance.victims
The field for thevictims
record component.private final Optional
<ContextAwarePredicate> CuredZombieVillagerTrigger.TriggerInstance.villager
The field for thevillager
record component.private final Optional
<ContextAwarePredicate> TradeTrigger.TriggerInstance.villager
The field for thevillager
record component.private final Optional
<ContextAwarePredicate> CuredZombieVillagerTrigger.TriggerInstance.zombie
The field for thezombie
record component.Methods in net.minecraft.advancements.critereon that return ContextAwarePredicateModifier and TypeMethodDescriptionstatic ContextAwarePredicate
ContextAwarePredicate.create
(LootItemCondition... conditions) static ContextAwarePredicate
EntityPredicate.wrap
(EntityPredicate predicate) static ContextAwarePredicate
EntityPredicate.wrap
(EntityPredicate.Builder builder) Methods in net.minecraft.advancements.critereon that return types with arguments of type ContextAwarePredicateModifier and TypeMethodDescriptionLightningStrikeTrigger.TriggerInstance.bystander()
Returns the value of thebystander
record component.FallAfterExplosionTrigger.TriggerInstance.cause()
Returns the value of thecause
record component.BredAnimalsTrigger.TriggerInstance.child()
Returns the value of thechild
record component.FishingRodHookedTrigger.TriggerInstance.entity()
Returns the value of theentity
record component.PickedUpItemTrigger.TriggerInstance.entity()
Returns the value of theentity
record component.PlayerHurtEntityTrigger.TriggerInstance.entity()
Returns the value of theentity
record component.PlayerInteractTrigger.TriggerInstance.entity()
Returns the value of theentity
record component.SummonedEntityTrigger.TriggerInstance.entity()
Returns the value of theentity
record component.TameAnimalTrigger.TriggerInstance.entity()
Returns the value of theentity
record component.KilledTrigger.TriggerInstance.entityPredicate()
Returns the value of theentityPredicate
record component.LightningStrikeTrigger.TriggerInstance.lightning()
Returns the value of thelightning
record component.AnyBlockInteractionTrigger.TriggerInstance.location()
Returns the value of thelocation
record component.DefaultBlockInteractionTrigger.TriggerInstance.location()
Returns the value of thelocation
record component.ItemUsedOnLocationTrigger.TriggerInstance.location()
Returns the value of thelocation
record component.BredAnimalsTrigger.TriggerInstance.parent()
Returns the value of theparent
record component.BredAnimalsTrigger.TriggerInstance.partner()
Returns the value of thepartner
record component.AnyBlockInteractionTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.BeeNestDestroyedTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.BredAnimalsTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.BrewedPotionTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ChangeDimensionTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ChanneledLightningTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ConstructBeaconTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ConsumeItemTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.CuredZombieVillagerTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.DefaultBlockInteractionTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.DistanceTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.EffectsChangedTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.EnchantedItemTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.EnterBlockTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.EntityHurtPlayerTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.FallAfterExplosionTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.FilledBucketTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.FishingRodHookedTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.InventoryChangeTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ItemDurabilityTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ItemUsedOnLocationTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.KilledByCrossbowTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.KilledTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.LevitationTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.LightningStrikeTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.LootTableTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.PickedUpItemTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.PlayerHurtEntityTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.PlayerInteractTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.PlayerTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.RecipeCraftedTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.RecipeUnlockedTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.ShotCrossbowTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.SimpleCriterionTrigger.SimpleInstance.player()
SlideDownBlockTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.StartRidingTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.SummonedEntityTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.TameAnimalTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.TargetBlockTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.TradeTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.UsedEnderEyeTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.UsedTotemTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.UsingItemTrigger.TriggerInstance.player()
Returns the value of theplayer
record component.TargetBlockTrigger.TriggerInstance.projectile()
Returns the value of theprojectile
record component.EffectsChangedTrigger.TriggerInstance.source()
Returns the value of thesource
record component.ChanneledLightningTrigger.TriggerInstance.victims()
Returns the value of thevictims
record component.KilledByCrossbowTrigger.TriggerInstance.victims()
Returns the value of thevictims
record component.CuredZombieVillagerTrigger.TriggerInstance.villager()
Returns the value of thevillager
record component.TradeTrigger.TriggerInstance.villager()
Returns the value of thevillager
record component.static Optional
<ContextAwarePredicate> EntityPredicate.wrap
(Optional<EntityPredicate> predicate) static List
<ContextAwarePredicate> EntityPredicate.wrap
(EntityPredicate.Builder... builders) CuredZombieVillagerTrigger.TriggerInstance.zombie()
Returns the value of thezombie
record component.Methods in net.minecraft.advancements.critereon with parameters of type ContextAwarePredicateModifier and TypeMethodDescriptionPickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByEntity
(ContextAwarePredicate player, Optional<ItemPredicate> item, Optional<ContextAwarePredicate> entity) void
CriterionValidator.validate
(ContextAwarePredicate entity, LootContextParamSet contextParams, String name) void
CriterionValidator.validateEntity
(ContextAwarePredicate entity, String name) Method parameters in net.minecraft.advancements.critereon with type arguments of type ContextAwarePredicateModifier and TypeMethodDescriptionItemDurabilityTrigger.TriggerInstance.changedDurability
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item, MinMaxBounds.Ints durability) PlayerInteractTrigger.TriggerInstance.itemUsedOnEntity
(Optional<ContextAwarePredicate> player, ItemPredicate.Builder item, Optional<ContextAwarePredicate> entity) PlayerInteractTrigger.TriggerInstance.itemUsedOnEntity
(ItemPredicate.Builder item, Optional<ContextAwarePredicate> entity) private static boolean
BredAnimalsTrigger.TriggerInstance.matches
(Optional<ContextAwarePredicate> predicate, LootContext context) TargetBlockTrigger.TriggerInstance.targetHit
(MinMaxBounds.Ints signalStrength, Optional<ContextAwarePredicate> projectile) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByPlayer
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item, Optional<ContextAwarePredicate> entity) void
CriterionValidator.validate
(List<ContextAwarePredicate> entities, LootContextParamSet contextParams, String name) void
CriterionValidator.validateEntities
(List<ContextAwarePredicate> entities, String name) void
CriterionValidator.validateEntity
(Optional<ContextAwarePredicate> entity, String name) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type ContextAwarePredicateModifierConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> location) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<Holder<Block>> block, Optional<ItemPredicate> item, MinMaxBounds.Ints beesInside) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> parent, Optional<ContextAwarePredicate> partner, Optional<ContextAwarePredicate> child) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<Holder<Potion>> potion) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ResourceKey<Level>> from, Optional<ResourceKey<Level>> to) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, List<ContextAwarePredicate> victims) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, List<ContextAwarePredicate> victims) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, MinMaxBounds.Ints level) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> zombie, Optional<ContextAwarePredicate> villager) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> location) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<LocationPredicate> startPosition, Optional<DistancePredicate> distance) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<MobEffectsPredicate> effects, Optional<ContextAwarePredicate> source) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item, MinMaxBounds.Ints levels) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<Holder<Block>> block, Optional<StatePropertiesPredicate> state) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<DamagePredicate> damage) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<LocationPredicate> startPosition, Optional<DistancePredicate> distance, Optional<ContextAwarePredicate> cause) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> rod, Optional<ContextAwarePredicate> entity, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, InventoryChangeTrigger.TriggerInstance.Slots slots, List<ItemPredicate> items) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item, MinMaxBounds.Ints durability, MinMaxBounds.Ints delta) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> location) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, List<ContextAwarePredicate> victims, MinMaxBounds.Ints uniqueEntityTypes) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, List<ContextAwarePredicate> victims, MinMaxBounds.Ints uniqueEntityTypes) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> entityPredicate, Optional<DamageSourcePredicate> killingBlow) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<DistancePredicate> distance, MinMaxBounds.Ints duration) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> lightning, Optional<ContextAwarePredicate> bystander) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, ResourceKey<LootTable> lootTable) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item, Optional<ContextAwarePredicate> entity) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<DamagePredicate> damage, Optional<ContextAwarePredicate> entity) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item, Optional<ContextAwarePredicate> entity) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, ResourceLocation recipeId, List<ItemPredicate> ingredients) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, ResourceLocation recipe) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<Holder<Block>> block, Optional<StatePropertiesPredicate> state) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> entity) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> entity) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, MinMaxBounds.Ints signalStrength, Optional<ContextAwarePredicate> projectile) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ContextAwarePredicate> villager, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, MinMaxBounds.Doubles distance) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, Optional<ItemPredicate> item) Creates an instance of aTriggerInstance
record class. -
Uses of ContextAwarePredicate in net.minecraft.data.advancements.packs
Fields in net.minecraft.data.advancements.packs declared as ContextAwarePredicateModifier and TypeFieldDescriptionprivate static final ContextAwarePredicate
VanillaNetherAdvancements.DISTRACT_PIGLIN_PLAYER_ARMOR_PREDICATE
-
Uses of ContextAwarePredicate in net.neoforged.neoforge.common.data.internal
Methods in net.neoforged.neoforge.common.data.internal that return ContextAwarePredicateModifier and TypeMethodDescriptionprivate static @Nullable ContextAwarePredicate
NeoForgeAdvancementProvider.replaceConditions
(@Nullable ContextAwarePredicate basePredicate, UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) Methods in net.neoforged.neoforge.common.data.internal with parameters of type ContextAwarePredicateModifier and TypeMethodDescriptionprivate static @Nullable ContextAwarePredicate
NeoForgeAdvancementProvider.replaceConditions
(@Nullable ContextAwarePredicate basePredicate, UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) private static <T extends SimpleCriterionTrigger.SimpleInstance>
Criterion<T> NeoForgeAdvancementProvider.replacePlayerPredicate
(Criterion<T> old, ContextAwarePredicate newPlayer, HolderLookup.Provider registries)