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.ingredients
The field for theingredients
record component.private final Optional<ItemPredicate>
BeeNestDestroyedCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
ConsumeItemCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
EnchantedItemCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
FilledBucketCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
FishingRodHookedCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
ItemDurabilityChangedCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
PlayerInteractedWithEntityCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
ShotCrossbowCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
ThrownItemPickedUpByEntityCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
UsedTotemCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
UsingItemCriterion.Conditions.item
The field for theitem
record component.private final Optional<ItemPredicate>
VillagerTradeCriterion.Conditions.item
The field for theitem
record component.private final List<ItemPredicate>
InventoryChangedCriterion.Conditions.items
The field for theitems
record component.private final Optional<ItemPredicate>
FishingRodHookedCriterion.Conditions.rod
The field for therod
record component.Methods in net.minecraft.advancement.criterion that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionRecipeCraftedCriterion.Conditions.ingredients()
Returns the value of theingredients
record component.BeeNestDestroyedCriterion.Conditions.item()
Returns the value of theitem
record component.ConsumeItemCriterion.Conditions.item()
Returns the value of theitem
record component.EnchantedItemCriterion.Conditions.item()
Returns the value of theitem
record component.FilledBucketCriterion.Conditions.item()
Returns the value of theitem
record component.FishingRodHookedCriterion.Conditions.item()
Returns the value of theitem
record component.ItemDurabilityChangedCriterion.Conditions.item()
Returns the value of theitem
record component.PlayerInteractedWithEntityCriterion.Conditions.item()
Returns the value of theitem
record component.ShotCrossbowCriterion.Conditions.item()
Returns the value of theitem
record component.ThrownItemPickedUpByEntityCriterion.Conditions.item()
Returns the value of theitem
record component.UsedTotemCriterion.Conditions.item()
Returns the value of theitem
record component.UsingItemCriterion.Conditions.item()
Returns the value of theitem
record component.VillagerTradeCriterion.Conditions.item()
Returns the value of theitem
record component.InventoryChangedCriterion.Conditions.items()
Returns the value of theitems
record component.FishingRodHookedCriterion.Conditions.rod()
Returns the value of therod
record 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.predicate
The field for thepredicate
record component.Methods in net.minecraft.loot.condition that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionMatchToolLootCondition.predicate()
Returns the value of thepredicate
record component.Constructor parameters in net.minecraft.loot.condition with type arguments of type ItemPredicate -
Uses of ItemPredicate in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type ItemPredicateModifier and TypeFieldDescriptionprivate Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.chest
private final Optional<ItemPredicate>
EntityEquipmentPredicate.chest
The field for thechest
record component.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 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.Methods in net.minecraft.predicate.entity that return types with arguments of type ItemPredicateModifier and TypeMethodDescriptionEntityEquipmentPredicate.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.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.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) -
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.CODEC
Methods in net.minecraft.predicate.item that return ItemPredicate