Uses of Record Class
net.minecraft.predicate.item.ItemPredicate
Package
Description
-
Uses of ItemPredicate in net.minecraft.advancement.criterion
Modifier 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.Modifier 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.Modifier and TypeMethodDescriptionUsedTotemCriterion.Conditions.create
(ItemPredicate itemPredicate) InventoryChangedCriterion.Conditions.items
(ItemPredicate[] items) Modifier 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) ModifierConstructorDescriptionConditions
(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
Modifier and TypeMethodDescriptionprivate static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromItemPredicates
(ItemPredicate[] predicates) -
Uses of ItemPredicate in net.minecraft.loot.condition
Modifier and TypeFieldDescriptionprivate final Optional
<ItemPredicate> MatchToolLootCondition.predicate
The field for thepredicate
record component. -
Uses of ItemPredicate in net.minecraft.loot.function
ModifierConstructorDescriptionprivate
FilteredLootFunction
(List<LootCondition> conditions, ItemPredicate itemFilter, LootFunction modifier) -
Uses of ItemPredicate in net.minecraft.predicate.entity
Modifier 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.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.private final Map
<SlotRange, ItemPredicate> SlotsPredicate.slots
The field for theslots
record component.Modifier 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.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.SlotsPredicate.slots()
Returns the value of theslots
record component.Modifier and TypeMethodDescriptionprivate static boolean
SlotsPredicate.matches
(Entity entity, ItemPredicate itemPredicate, IntList slotIds) ModifierConstructorDescriptionEntityEquipmentPredicate
(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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemPredicate> ItemPredicate.CODEC
private final Optional
<CollectionPredicate<ItemStack, ItemPredicate>> BundleContentsPredicate.items
The field for theitems
record component.private final Optional
<CollectionPredicate<ItemStack, ItemPredicate>> ContainerPredicate.items
The field for theitems
record component.Modifier and TypeMethodDescriptionBundleContentsPredicate.items()
Returns the value of theitems
record component.ContainerPredicate.items()
Returns the value of theitems
record component.ModifierConstructorDescription