Uses of Record Class
net.minecraft.advancements.predicates.ItemPredicate
Packages that use ItemPredicate
Package
Description
Classes for NeoForge's own data generation.
-
Uses of ItemPredicate in net.minecraft.advancements.predicates
Fields in net.minecraft.advancements.predicates with type parameters of type ItemPredicateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemPredicate> ItemPredicate.CODECprivate final Map<SlotRange, ItemPredicate> SlotsPredicate.slotsThe field for theslotsrecord component.Methods in net.minecraft.advancements.predicates that return ItemPredicateMethods in net.minecraft.advancements.predicates that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionSlotsPredicate.slots()Returns the value of theslotsrecord component.Methods in net.minecraft.advancements.predicates with parameters of type ItemPredicateModifier and TypeMethodDescriptionprivate static booleanSlotsPredicate.matchSlots(SlotProvider slotProvider, ItemPredicate test, it.unimi.dsi.fastutil.ints.IntList slots) Constructor parameters in net.minecraft.advancements.predicates with type arguments of type ItemPredicateModifierConstructorDescriptionSlotsPredicate(Map<SlotRange, ItemPredicate> slots) Creates an instance of aSlotsPredicaterecord class. -
Uses of ItemPredicate in net.minecraft.advancements.predicates.entity
Fields in net.minecraft.advancements.predicates.entity 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.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.feetprivate final Optional<ItemPredicate> EntityEquipmentPredicate.feetThe field for thefeetrecord component.private Optional<ItemPredicate> EntityEquipmentPredicate.Builder.headprivate final Optional<ItemPredicate> EntityEquipmentPredicate.headThe field for theheadrecord 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.Methods in net.minecraft.advancements.predicates.entity 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.EntityEquipmentPredicate.head()Returns the value of theheadrecord 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.Constructor parameters in net.minecraft.advancements.predicates.entity 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. -
Uses of ItemPredicate in net.minecraft.advancements.triggers
Fields in net.minecraft.advancements.triggers with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate final Optional<ItemPredicate> KilledByArrowTrigger.TriggerInstance.firedFromWeaponThe field for thefiredFromWeaponrecord 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 final Optional<ItemPredicate> FishingRodHookedTrigger.TriggerInstance.rodThe field for therodrecord component.Methods in net.minecraft.advancements.triggers that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionKilledByArrowTrigger.TriggerInstance.firedFromWeapon()Returns the value of thefiredFromWeaponrecord 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.FishingRodHookedTrigger.TriggerInstance.rod()Returns the value of therodrecord component.Methods in net.minecraft.advancements.triggers with parameters of type ItemPredicateModifier and TypeMethodDescriptionInventoryChangeTrigger.TriggerInstance.hasItems(ItemPredicate... items) UsedTotemTrigger.TriggerInstance.usedTotem(ItemPredicate item) Method parameters in net.minecraft.advancements.triggers with type arguments of type ItemPredicateModifier and TypeMethodDescriptionItemDurabilityTrigger.TriggerInstance.changedDurability(Optional<ItemPredicate> item, MinMaxBounds.Ints durability) FishingRodHookedTrigger.TriggerInstance.fishedItem(Optional<ItemPredicate> rod, Optional<EntityPredicate> entity, Optional<ItemPredicate> item) ShotCrossbowTrigger.TriggerInstance.shotCrossbow(Optional<ItemPredicate> item) Constructor parameters in net.minecraft.advancements.triggers with type arguments of type ItemPredicateModifierConstructorDescriptionTriggerInstance(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<ItemInstance, ItemPredicate>> BundlePredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemInstance, 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... predicates) -
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.item.slot
Fields in net.minecraft.world.item.slot declared as ItemPredicateConstructors in net.minecraft.world.item.slot with parameters of type ItemPredicateModifierConstructorDescriptionprivateFilteredSlotSource(SlotSource slotSource, ItemPredicate filter) -
Uses of ItemPredicate in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as ItemPredicateModifier and TypeFieldDescriptionprivate final ItemPredicateFilteredFunction.filterprivate final ItemPredicateFilteredFunction.Builder.itemPredicateMethods in net.minecraft.world.level.storage.loot.functions with parameters of type ItemPredicateModifier and TypeMethodDescriptionstatic FilteredFunction.BuilderFilteredFunction.filtered(ItemPredicate predicate) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type ItemPredicateModifierConstructorDescriptionprivateBuilder(ItemPredicate itemPredicate) FilteredFunction(List<LootItemCondition> predicates, ItemPredicate filter, Optional<LootItemFunction> onPass, Optional<LootItemFunction> onFail) -
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)