Uses of Record Class
net.minecraft.advancements.critereon.ItemPredicate
Package
Description
-
Uses of ItemPredicate in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate 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 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.Modifier 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.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.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.Modifier and TypeMethodDescriptionInventoryChangeTrigger.TriggerInstance.hasItems
(ItemPredicate... p_43198_) UsedTotemTrigger.TriggerInstance.usedTotem
(ItemPredicate p_298404_) Modifier and TypeMethodDescriptionItemDurabilityTrigger.TriggerInstance.changedDurability
(Optional<ItemPredicate> p_300870_, MinMaxBounds.Ints p_151288_) FishingRodHookedTrigger.TriggerInstance.fishedItem
(Optional<ItemPredicate> p_300012_, Optional<EntityPredicate> p_297455_, Optional<ItemPredicate> p_297238_) ShotCrossbowTrigger.TriggerInstance.shotCrossbow
(Optional<ItemPredicate> p_299474_) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByEntity
(ContextAwarePredicate p_286865_, Optional<ItemPredicate> p_297283_, Optional<ContextAwarePredicate> p_300033_) ModifierConstructorDescriptionEntityEquipmentPredicate
(Optional<ItemPredicate> head, Optional<ItemPredicate> chest, Optional<ItemPredicate> legs, Optional<ItemPredicate> feet, Optional<ItemPredicate> mainhand, Optional<ItemPredicate> offhand) Creates an instance of aEntityEquipmentPredicate
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
Modifier and TypeMethodDescriptionprivate static Criterion<InventoryChangeTrigger.TriggerInstance>
RecipeProvider.inventoryTrigger
(ItemPredicate... p_297226_) -
Uses of ItemPredicate in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
MatchTool.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionMatchTool.predicate()
Returns the value of thepredicate
record component.ModifierConstructorDescriptionMatchTool
(Optional<ItemPredicate> predicate) Creates an instance of aMatchTool
record class.