Uses of Record Class
net.minecraft.advancements.critereon.ItemPredicate
Packages that use ItemPredicate
Package
Description
Classes for NeoForge's own data generation.
-
Uses of ItemPredicate in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate final Optional<ItemPredicate> EntityEquipmentPredicate.bodyThe field for thebodyrecord component.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.bodyprivate Optional<ItemPredicate> EntityEquipmentPredicate.Builder.chestprivate final Optional<ItemPredicate> EntityEquipmentPredicate.chestThe field for thechestrecord component.static final com.mojang.serialization.Codec<ItemPredicate> ItemPredicate.CODECprivate Optional<ItemPredicate> EntityEquipmentPredicate.Builder.feetprivate final Optional<ItemPredicate> EntityEquipmentPredicate.feetThe field for thefeetrecord component.private final Optional<ItemPredicate> KilledByArrowTrigger.TriggerInstance.firedFromWeaponThe field for thefiredFromWeaponrecord component.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.headprivate final Optional<ItemPredicate> EntityEquipmentPredicate.headThe field for theheadrecord component.private final List<ItemPredicate> RecipeCraftedTrigger.TriggerInstance.ingredientsThe field for theingredientsrecord component.private final Optional<ItemPredicate> BeeNestDestroyedTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ConsumeItemTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> EnchantedItemTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> FilledBucketTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> FishingRodHookedTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ItemDurabilityTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> PickedUpItemTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> PlayerInteractTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ShotCrossbowTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> TradeTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> UsedTotemTrigger.TriggerInstance.itemThe field for theitemrecord component.private final Optional<ItemPredicate> UsingItemTrigger.TriggerInstance.itemThe field for theitemrecord component.private final List<ItemPredicate> InventoryChangeTrigger.TriggerInstance.itemsThe field for theitemsrecord component.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.legsprivate final Optional<ItemPredicate> EntityEquipmentPredicate.legsThe field for thelegsrecord component.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.mainhandprivate final Optional<ItemPredicate> EntityEquipmentPredicate.mainhandThe field for themainhandrecord component.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.offhandprivate final Optional<ItemPredicate> EntityEquipmentPredicate.offhandThe field for theoffhandrecord component.private final Optional<ItemPredicate> FishingRodHookedTrigger.TriggerInstance.rodThe field for therodrecord component.private final Map<SlotRange, ItemPredicate> SlotsPredicate.slotsThe field for theslotsrecord component.Methods in net.minecraft.advancements.critereon that return ItemPredicateMethods in net.minecraft.advancements.critereon that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionEntityEquipmentPredicate.body()Returns the value of thebodyrecord component.EntityEquipmentPredicate.chest()Returns the value of thechestrecord component.EntityEquipmentPredicate.feet()Returns the value of thefeetrecord component.KilledByArrowTrigger.TriggerInstance.firedFromWeapon()Returns the value of thefiredFromWeaponrecord component.EntityEquipmentPredicate.head()Returns the value of theheadrecord component.RecipeCraftedTrigger.TriggerInstance.ingredients()Returns the value of theingredientsrecord component.BeeNestDestroyedTrigger.TriggerInstance.item()Returns the value of theitemrecord component.ConsumeItemTrigger.TriggerInstance.item()Returns the value of theitemrecord component.EnchantedItemTrigger.TriggerInstance.item()Returns the value of theitemrecord component.FilledBucketTrigger.TriggerInstance.item()Returns the value of theitemrecord component.FishingRodHookedTrigger.TriggerInstance.item()Returns the value of theitemrecord component.ItemDurabilityTrigger.TriggerInstance.item()Returns the value of theitemrecord component.PickedUpItemTrigger.TriggerInstance.item()Returns the value of theitemrecord component.PlayerInteractTrigger.TriggerInstance.item()Returns the value of theitemrecord component.ShotCrossbowTrigger.TriggerInstance.item()Returns the value of theitemrecord component.TradeTrigger.TriggerInstance.item()Returns the value of theitemrecord component.UsedTotemTrigger.TriggerInstance.item()Returns the value of theitemrecord component.UsingItemTrigger.TriggerInstance.item()Returns the value of theitemrecord component.InventoryChangeTrigger.TriggerInstance.items()Returns the value of theitemsrecord component.EntityEquipmentPredicate.legs()Returns the value of thelegsrecord component.EntityEquipmentPredicate.mainhand()Returns the value of themainhandrecord component.EntityEquipmentPredicate.offhand()Returns the value of theoffhandrecord component.FishingRodHookedTrigger.TriggerInstance.rod()Returns the value of therodrecord component.SlotsPredicate.slots()Returns the value of theslotsrecord component.Methods in net.minecraft.advancements.critereon with parameters of type ItemPredicateModifier and TypeMethodDescriptionInventoryChangeTrigger.TriggerInstance.hasItems(ItemPredicate... pItems) private static booleanSlotsPredicate.matchSlots(Entity pEntity, ItemPredicate pPredicate, it.unimi.dsi.fastutil.ints.IntList pSlots) UsedTotemTrigger.TriggerInstance.usedTotem(ItemPredicate pItem) Method parameters in net.minecraft.advancements.critereon with type arguments of type ItemPredicateModifier and TypeMethodDescriptionItemDurabilityTrigger.TriggerInstance.changedDurability(Optional<ItemPredicate> pItem, MinMaxBounds.Ints pDurability) FishingRodHookedTrigger.TriggerInstance.fishedItem(Optional<ItemPredicate> pRod, Optional<EntityPredicate> pEntity, Optional<ItemPredicate> pItem) ShotCrossbowTrigger.TriggerInstance.shotCrossbow(Optional<ItemPredicate> pItem) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByEntity(ContextAwarePredicate pPlayer, Optional<ItemPredicate> pItem, Optional<ContextAwarePredicate> pEntity) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type ItemPredicateModifierConstructorDescriptionEntityEquipmentPredicate(Optional<ItemPredicate> head, Optional<ItemPredicate> chest, Optional<ItemPredicate> legs, Optional<ItemPredicate> feet, Optional<ItemPredicate> body, Optional<ItemPredicate> mainhand, Optional<ItemPredicate> offhand) Creates an instance of aEntityEquipmentPredicaterecord class.SlotsPredicate(Map<SlotRange, ItemPredicate> slots) Creates an instance of aSlotsPredicaterecord class.TriggerInstance(Optional<ContextAwarePredicate> player, InventoryChangeTrigger.TriggerInstance.Slots slots, List<ItemPredicate> items) Creates an instance of aTriggerInstancerecord class.TriggerInstance(Optional<ContextAwarePredicate> player, ResourceKey<Recipe<?>> recipeId, List<ItemPredicate> ingredients) Creates an instance of aTriggerInstancerecord class. -
Uses of ItemPredicate in net.minecraft.core.component.predicates
Fields in net.minecraft.core.component.predicates with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate final Optional<CollectionPredicate<ItemStack, ItemPredicate>> BundlePredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemStack, ItemPredicate>> ContainerPredicate.itemsThe field for theitemsrecord component.Methods in net.minecraft.core.component.predicates that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionBundlePredicate.items()Returns the value of theitemsrecord component.ContainerPredicate.items()Returns the value of theitemsrecord component.Constructor parameters in net.minecraft.core.component.predicates with type arguments of type ItemPredicateModifierConstructorDescriptionCreates an instance of aBundlePredicaterecord class.Creates an instance of aContainerPredicaterecord class. -
Uses of ItemPredicate in net.minecraft.data.recipes
Methods in net.minecraft.data.recipes with parameters of type ItemPredicateModifier and TypeMethodDescriptionprotected static Criterion<InventoryChangeTrigger.TriggerInstance> RecipeProvider.inventoryTrigger(ItemPredicate... pPredicates) -
Uses of ItemPredicate in net.minecraft.world
Fields in net.minecraft.world declared as ItemPredicateModifier and TypeFieldDescriptionprivate final ItemPredicateLockCode.predicateThe field for thepredicaterecord component.Methods in net.minecraft.world that return ItemPredicateModifier and TypeMethodDescriptionLockCode.predicate()Returns the value of thepredicaterecord component.Constructors in net.minecraft.world with parameters of type ItemPredicateModifierConstructorDescriptionLockCode(ItemPredicate predicate) Creates an instance of aLockCoderecord class. -
Uses of ItemPredicate in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as ItemPredicateConstructors in net.minecraft.world.level.storage.loot.functions with parameters of type ItemPredicateModifierConstructorDescriptionFilteredFunction(List<LootItemCondition> pConditions, ItemPredicate pFilter, LootItemFunction pModifier) -
Uses of ItemPredicate in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate final Optional<ItemPredicate> MatchTool.predicateThe field for thepredicaterecord component.Methods in net.minecraft.world.level.storage.loot.predicates that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionMatchTool.predicate()Returns the value of thepredicaterecord component.Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type ItemPredicateModifierConstructorDescriptionMatchTool(Optional<ItemPredicate> predicate) Creates an instance of aMatchToolrecord class. -
Uses of ItemPredicate in net.neoforged.neoforge.common.data.internal
Methods in net.neoforged.neoforge.common.data.internal with parameters of type ItemPredicateModifier and TypeMethodDescriptionprivate static booleanNeoForgeAdvancementProvider.predicateMatches(ItemPredicate predicate, TagKey<Item> tagKey) private static booleanNeoForgeAdvancementProvider.predicateMatches(ItemPredicate predicate, ItemLike... targets) private static BiFunction<Criterion<?>, HolderLookup.Provider, Criterion<?>> NeoForgeAdvancementProvider.replaceInteractCriteria(ItemPredicate replacement, ItemLike... targetItem)