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.body
The field for thebody
record component.private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.body
private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.chest
private final Optional
<ItemPredicate> EntityEquipmentPredicate.chest
The field for thechest
record component.static final com.mojang.serialization.Codec
<ItemPredicate> ItemPredicate.CODEC
private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.feet
private final Optional
<ItemPredicate> EntityEquipmentPredicate.feet
The field for thefeet
record component.private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.head
private final Optional
<ItemPredicate> EntityEquipmentPredicate.head
The field for thehead
record component.private final List
<ItemPredicate> RecipeCraftedTrigger.TriggerInstance.ingredients
The field for theingredients
record component.private final Optional
<ItemPredicate> BeeNestDestroyedTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> ConsumeItemTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> EnchantedItemTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> FilledBucketTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> FishingRodHookedTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> ItemDurabilityTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> PickedUpItemTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> PlayerInteractTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> ShotCrossbowTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> TradeTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> UsedTotemTrigger.TriggerInstance.item
The field for theitem
record component.private final Optional
<ItemPredicate> UsingItemTrigger.TriggerInstance.item
The field for theitem
record component.private final List
<ItemPredicate> InventoryChangeTrigger.TriggerInstance.items
The field for theitems
record component.private final Optional
<CollectionPredicate<ItemStack, ItemPredicate>> ItemBundlePredicate.items
The field for theitems
record component.private final Optional
<CollectionPredicate<ItemStack, ItemPredicate>> ItemContainerPredicate.items
The field for theitems
record component.private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.legs
private final Optional
<ItemPredicate> EntityEquipmentPredicate.legs
The field for thelegs
record component.private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.mainhand
private final Optional
<ItemPredicate> EntityEquipmentPredicate.mainhand
The field for themainhand
record component.private Optional
<ItemPredicate> EntityEquipmentPredicate.Builder.offhand
private final Optional
<ItemPredicate> EntityEquipmentPredicate.offhand
The field for theoffhand
record component.private final Optional
<ItemPredicate> FishingRodHookedTrigger.TriggerInstance.rod
The field for therod
record component.private final Map
<SlotRange, ItemPredicate> SlotsPredicate.slots
The field for theslots
record 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 thebody
record component.EntityEquipmentPredicate.chest()
Returns the value of thechest
record component.EntityEquipmentPredicate.feet()
Returns the value of thefeet
record component.EntityEquipmentPredicate.head()
Returns the value of thehead
record component.RecipeCraftedTrigger.TriggerInstance.ingredients()
Returns the value of theingredients
record component.BeeNestDestroyedTrigger.TriggerInstance.item()
Returns the value of theitem
record component.ConsumeItemTrigger.TriggerInstance.item()
Returns the value of theitem
record component.EnchantedItemTrigger.TriggerInstance.item()
Returns the value of theitem
record component.FilledBucketTrigger.TriggerInstance.item()
Returns the value of theitem
record component.FishingRodHookedTrigger.TriggerInstance.item()
Returns the value of theitem
record component.ItemDurabilityTrigger.TriggerInstance.item()
Returns the value of theitem
record component.PickedUpItemTrigger.TriggerInstance.item()
Returns the value of theitem
record component.PlayerInteractTrigger.TriggerInstance.item()
Returns the value of theitem
record component.ShotCrossbowTrigger.TriggerInstance.item()
Returns the value of theitem
record component.TradeTrigger.TriggerInstance.item()
Returns the value of theitem
record component.UsedTotemTrigger.TriggerInstance.item()
Returns the value of theitem
record component.UsingItemTrigger.TriggerInstance.item()
Returns the value of theitem
record component.InventoryChangeTrigger.TriggerInstance.items()
Returns the value of theitems
record component.ItemBundlePredicate.items()
Returns the value of theitems
record component.ItemContainerPredicate.items()
Returns the value of theitems
record component.EntityEquipmentPredicate.legs()
Returns the value of thelegs
record component.EntityEquipmentPredicate.mainhand()
Returns the value of themainhand
record component.EntityEquipmentPredicate.offhand()
Returns the value of theoffhand
record component.FishingRodHookedTrigger.TriggerInstance.rod()
Returns the value of therod
record component.SlotsPredicate.slots()
Returns the value of theslots
record component.Methods in net.minecraft.advancements.critereon with parameters of type ItemPredicateModifier and TypeMethodDescriptionInventoryChangeTrigger.TriggerInstance.hasItems
(ItemPredicate... p_43198_) private static boolean
SlotsPredicate.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 aEntityEquipmentPredicate
record class.Creates an instance of aItemBundlePredicate
record class.Creates an instance of aItemContainerPredicate
record class.SlotsPredicate
(Map<SlotRange, ItemPredicate> slots) Creates an instance of aSlotsPredicate
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, InventoryChangeTrigger.TriggerInstance.Slots slots, List<ItemPredicate> items) Creates an instance of aTriggerInstance
record class.TriggerInstance
(Optional<ContextAwarePredicate> player, ResourceLocation recipeId, List<ItemPredicate> ingredients) Creates an instance of aTriggerInstance
record 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 ItemPredicateModifierConstructorDescriptionprivate
FilteredFunction
(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.predicate
The field for thepredicate
record 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 thepredicate
record component.Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type ItemPredicateModifierConstructorDescriptionMatchTool
(Optional<ItemPredicate> predicate) Creates an instance of aMatchTool
record 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 boolean
NeoForgeAdvancementProvider.predicateMatches
(ItemPredicate predicate, ItemLike... targets) private static BiFunction
<Criterion<?>, HolderLookup.Provider, Criterion<?>> NeoForgeAdvancementProvider.replaceInteractCriteria
(ItemPredicate replacement, ItemLike... targetItem)