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 Optional<ItemPredicate>
BeeNestDestroyedTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
ConsumeItemTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
EnchantedItemTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
FilledBucketTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
FishingRodHookedTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
ItemDurabilityTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
PickedUpItemTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
PlayerInteractTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
ShotCrossbowTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
TradeTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
UsedTotemTrigger.TriggerInstance.item
private final Optional<ItemPredicate>
UsingItemTrigger.TriggerInstance.item
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 List<ItemPredicate>
InventoryChangeTrigger.TriggerInstance.predicates
private final List<ItemPredicate>
RecipeCraftedTrigger.TriggerInstance.predicates
private final Optional<ItemPredicate>
FishingRodHookedTrigger.TriggerInstance.rod
Modifier and TypeMethodDescriptionEntityEquipmentPredicate.chest()
Returns the value of thechest
record component.EntityEquipmentPredicate.feet()
Returns the value of thefeet
record component.static Optional<ItemPredicate>
ItemPredicate.fromJson
(com.google.gson.JsonElement p_45052_) static List<ItemPredicate>
ItemPredicate.fromJsonArray
(com.google.gson.JsonElement p_45056_) 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.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_) static com.google.gson.JsonElement
ItemPredicate.serializeToJsonArray
(List<ItemPredicate> p_298997_) 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> p_300026_, MinMaxBounds.Ints p_286313_, MinMaxBounds.Ints p_286767_, MinMaxBounds.Ints p_286601_, List<ItemPredicate> p_297907_) TriggerInstance
(Optional<ContextAwarePredicate> p_300694_, ResourceLocation p_286906_, List<ItemPredicate> p_286302_) -
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.