Uses of Record Class
net.minecraft.predicate.item.ItemPredicate
Packages that use ItemPredicate
Package
Description
The base package for all Minecraft classes.
-
Uses of ItemPredicate in net.minecraft
Fields in net.minecraft declared as ItemPredicateConstructors in net.minecraft with parameters of type ItemPredicateModifierConstructorDescriptionprivateclass_12267(class_12275 class_12275, ItemPredicate itemPredicate) -
Uses of ItemPredicate in net.minecraft.advancement.criterion
Fields in net.minecraft.advancement.criterion with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate final Optional<ItemPredicate> KilledByArrowCriterion.Conditions.firedFromWeaponThe field for thefiredFromWeaponrecord component.private final List<ItemPredicate> RecipeCraftedCriterion.Conditions.ingredientsThe field for theingredientsrecord component.private final Optional<ItemPredicate> BeeNestDestroyedCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ConsumeItemCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> EnchantedItemCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> FilledBucketCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> FishingRodHookedCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ItemDurabilityChangedCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> PlayerInteractedWithEntityCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ShotCrossbowCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> ThrownItemPickedUpByEntityCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> UsedTotemCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> UsingItemCriterion.Conditions.itemThe field for theitemrecord component.private final Optional<ItemPredicate> VillagerTradeCriterion.Conditions.itemThe field for theitemrecord component.private final List<ItemPredicate> InventoryChangedCriterion.Conditions.itemsThe field for theitemsrecord component.private final Optional<ItemPredicate> FishingRodHookedCriterion.Conditions.rodThe field for therodrecord component.Methods in net.minecraft.advancement.criterion that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionKilledByArrowCriterion.Conditions.firedFromWeapon()Returns the value of thefiredFromWeaponrecord component.RecipeCraftedCriterion.Conditions.ingredients()Returns the value of theingredientsrecord component.BeeNestDestroyedCriterion.Conditions.item()Returns the value of theitemrecord component.ConsumeItemCriterion.Conditions.item()Returns the value of theitemrecord component.EnchantedItemCriterion.Conditions.item()Returns the value of theitemrecord component.FilledBucketCriterion.Conditions.item()Returns the value of theitemrecord component.FishingRodHookedCriterion.Conditions.item()Returns the value of theitemrecord component.ItemDurabilityChangedCriterion.Conditions.item()Returns the value of theitemrecord component.PlayerInteractedWithEntityCriterion.Conditions.item()Returns the value of theitemrecord component.ShotCrossbowCriterion.Conditions.item()Returns the value of theitemrecord component.ThrownItemPickedUpByEntityCriterion.Conditions.item()Returns the value of theitemrecord component.UsedTotemCriterion.Conditions.item()Returns the value of theitemrecord component.UsingItemCriterion.Conditions.item()Returns the value of theitemrecord component.VillagerTradeCriterion.Conditions.item()Returns the value of theitemrecord component.InventoryChangedCriterion.Conditions.items()Returns the value of theitemsrecord component.FishingRodHookedCriterion.Conditions.rod()Returns the value of therodrecord component.Methods in net.minecraft.advancement.criterion with parameters of type ItemPredicateModifier and TypeMethodDescriptionUsedTotemCriterion.Conditions.create(ItemPredicate itemPredicate) InventoryChangedCriterion.Conditions.items(ItemPredicate[] items) Method parameters in net.minecraft.advancement.criterion with type arguments of type ItemPredicateModifier and TypeMethodDescriptionFishingRodHookedCriterion.Conditions.create(Optional<ItemPredicate> rod, Optional<EntityPredicate> hookedEntity, Optional<ItemPredicate> caughtItem) ItemDurabilityChangedCriterion.Conditions.create(Optional<ItemPredicate> item, NumberRange.IntRange durability) ShotCrossbowCriterion.Conditions.create(Optional<ItemPredicate> item) ThrownItemPickedUpByEntityCriterion.Conditions.createThrownItemPickedUpByEntity(LootContextPredicate player, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) Constructor parameters in net.minecraft.advancement.criterion with type arguments of type ItemPredicateModifierConstructorDescriptionConditions(Optional<LootContextPredicate> playerPredicate, InventoryChangedCriterion.Conditions.Slots slots, List<ItemPredicate> items) Conditions(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> recipeId, List<ItemPredicate> ingredients) -
Uses of ItemPredicate in net.minecraft.data.recipe
Methods in net.minecraft.data.recipe with parameters of type ItemPredicateModifier and TypeMethodDescriptionprivate static AdvancementCriterion<InventoryChangedCriterion.Conditions> RecipeGenerator.conditionsFromItemPredicates(ItemPredicate[] predicates) -
Uses of ItemPredicate in net.minecraft.inventory
Fields in net.minecraft.inventory declared as ItemPredicateModifier and TypeFieldDescriptionprivate final ItemPredicateContainerLock.predicateThe field for thepredicaterecord component.Methods in net.minecraft.inventory that return ItemPredicateModifier and TypeMethodDescriptionContainerLock.predicate()Returns the value of thepredicaterecord component.Constructors in net.minecraft.inventory with parameters of type ItemPredicateModifierConstructorDescriptionContainerLock(ItemPredicate predicate) Creates an instance of aContainerLockrecord class. -
Uses of ItemPredicate in net.minecraft.loot.condition
Fields in net.minecraft.loot.condition with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate final Optional<ItemPredicate> MatchToolLootCondition.predicateThe field for thepredicaterecord component.Methods in net.minecraft.loot.condition that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionMatchToolLootCondition.predicate()Returns the value of thepredicaterecord component.Constructor parameters in net.minecraft.loot.condition with type arguments of type ItemPredicateModifierConstructorDescriptionMatchToolLootCondition(Optional<ItemPredicate> predicate) Creates an instance of aMatchToolLootConditionrecord class. -
Uses of ItemPredicate in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as ItemPredicateModifier and TypeFieldDescriptionprivate final ItemPredicateFilteredLootFunction.Builder.itemFilterprivate final ItemPredicateFilteredLootFunction.itemFilterMethods in net.minecraft.loot.function with parameters of type ItemPredicateModifier and TypeMethodDescriptionstatic FilteredLootFunction.BuilderFilteredLootFunction.builder(ItemPredicate itemFilter) Constructors in net.minecraft.loot.function with parameters of type ItemPredicateModifierConstructorDescription(package private)Builder(ItemPredicate itemFilter) (package private)FilteredLootFunction(List<LootCondition> conditions, ItemPredicate itemFilter, Optional<LootFunction> onPass, Optional<LootFunction> onFail) -
Uses of ItemPredicate in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.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.private final Map<SlotRange, ItemPredicate> SlotsPredicate.slotsThe field for theslotsrecord component.Methods in net.minecraft.predicate.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.SlotsPredicate.slots()Returns the value of theslotsrecord component.Methods in net.minecraft.predicate.entity with parameters of type ItemPredicateModifier and TypeMethodDescriptionprivate static booleanSlotsPredicate.matches(class_12260 class_12260, ItemPredicate itemPredicate, IntList slotIds) Constructor parameters in net.minecraft.predicate.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.SlotsPredicate(Map<SlotRange, ItemPredicate> slots) Creates an instance of aSlotsPredicaterecord class. -
Uses of ItemPredicate in net.minecraft.predicate.item
Fields in net.minecraft.predicate.item with type parameters of type ItemPredicateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemPredicate> ItemPredicate.CODECprivate final Optional<CollectionPredicate<ItemStack, ItemPredicate>> BundleContentsPredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemStack, ItemPredicate>> ContainerPredicate.itemsThe field for theitemsrecord component.Methods in net.minecraft.predicate.item that return ItemPredicateMethods in net.minecraft.predicate.item that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionBundleContentsPredicate.items()Returns the value of theitemsrecord component.ContainerPredicate.items()Returns the value of theitemsrecord component.Constructor parameters in net.minecraft.predicate.item with type arguments of type ItemPredicateModifierConstructorDescriptionCreates an instance of aBundleContentsPredicaterecord class.Creates an instance of aContainerPredicaterecord class.