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 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 final Optional<CollectionPredicate<ItemStack, ItemPredicate>> ItemBundlePredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemStack, ItemPredicate>> ItemContainerPredicate.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.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.ItemBundlePredicate.items()Returns the value of theitemsrecord component.ItemContainerPredicate.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... p_43198_) private static booleanSlotsPredicate.matchSlots(Entity p_332687_, ItemPredicate p_332814_, it.unimi.dsi.fastutil.ints.IntList p_332676_) UsedTotemTrigger.TriggerInstance.usedTotem(ItemPredicate p_163725_) Method parameters in net.minecraft.advancements.critereon with type arguments of type ItemPredicateModifier and TypeMethodDescriptionItemDurabilityTrigger.TriggerInstance.changedDurability(Optional<ItemPredicate> p_299020_, MinMaxBounds.Ints p_151288_) FishingRodHookedTrigger.TriggerInstance.fishedItem(Optional<ItemPredicate> p_298233_, Optional<EntityPredicate> p_298660_, Optional<ItemPredicate> p_298847_) ShotCrossbowTrigger.TriggerInstance.shotCrossbow(Optional<ItemPredicate> p_300988_) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByEntity(ContextAwarePredicate p_286865_, Optional<ItemPredicate> p_299099_, Optional<ContextAwarePredicate> p_299117_) 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.Creates an instance of aItemBundlePredicaterecord class.Creates an instance of aItemContainerPredicaterecord 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, ResourceLocation recipeId, List<ItemPredicate> ingredients) Creates an instance of aTriggerInstancerecord 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... p_126012_) -
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 ItemPredicateModifierConstructorDescriptionprivateFilteredFunction(List<LootItemCondition> p_341370_, ItemPredicate p_341210_, LootItemFunction p_340816_) -
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, ItemLike... targets) private static BiFunction<Criterion<?>, HolderLookup.Provider, Criterion<?>> NeoForgeAdvancementProvider.replaceInteractCriteria(ItemPredicate replacement, ItemLike... targetItem)