Uses of Record Class
net.minecraft.predicate.item.ItemPredicate
Packages that use ItemPredicate
Package
Description
-
Uses of ItemPredicate in net.minecraft.advancement.criterion
Fields in net.minecraft.advancement.criterion with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate 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 TypeMethodDescriptionRecipeCraftedCriterion.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> list) Conditions(Optional<LootContextPredicate> playerPredicate, Identifier recipeId, List<ItemPredicate> ingredients) -
Uses of ItemPredicate in net.minecraft.data.server.recipe
Methods in net.minecraft.data.server.recipe with parameters of type ItemPredicateModifier and TypeMethodDescriptionprivate static AdvancementCriterion<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromItemPredicates(ItemPredicate[] predicates) -
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 ItemPredicate -
Uses of ItemPredicate in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as ItemPredicateConstructors in net.minecraft.loot.function with parameters of type ItemPredicateModifierConstructorDescriptionprivateFilteredLootFunction(List<LootCondition> conditions, ItemPredicate itemFilter, LootFunction modifier) -
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(Entity entity, ItemPredicate itemPredicate, IntList slotIds) Constructor parameters in net.minecraft.predicate.entity with type arguments of type ItemPredicateModifierConstructorDescriptionEntityEquipmentPredicate(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6, Optional<ItemPredicate> optional7) -
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 ItemPredicateModifierConstructorDescription