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 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
static final com.mojang.serialization.Codec<ItemPredicate>
ItemPredicate.VANILLA_CODEC
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_) Deprecated.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_163725_) Modifier and TypeMethodDescriptionItemDurabilityTrigger.TriggerInstance.changedDurability
(Optional<ItemPredicate> p_299020_, MinMaxBounds.Ints p_151288_) FishingRodHookedTrigger.TriggerInstance.fishedItem
(Optional<ItemPredicate> p_298233_, Optional<EntityPredicate> p_298660_, Optional<ItemPredicate> p_298847_) static com.google.gson.JsonElement
ItemPredicate.serializeToJsonArray
(List<ItemPredicate> p_298555_) Deprecated.ShotCrossbowTrigger.TriggerInstance.shotCrossbow
(Optional<ItemPredicate> p_300988_) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByEntity
(ContextAwarePredicate p_286865_, Optional<ItemPredicate> p_299099_, Optional<ContextAwarePredicate> p_299117_) 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_298662_, MinMaxBounds.Ints p_286313_, MinMaxBounds.Ints p_286767_, MinMaxBounds.Ints p_286601_, List<ItemPredicate> p_299143_) TriggerInstance
(Optional<ContextAwarePredicate> p_298295_, ResourceLocation p_286906_, List<ItemPredicate> p_286302_) -
Uses of ItemPredicate in net.minecraft.data.recipes
Modifier and TypeMethodDescriptionprotected static Criterion<InventoryChangeTrigger.TriggerInstance>
RecipeProvider.inventoryTrigger
(ItemPredicate... p_126012_) -
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. -
Uses of ItemPredicate in net.neoforged.neoforge.common.advancements.critereon
Modifier and TypeMethodDescriptiondefault ItemPredicate
ICustomItemPredicate.toVanilla()
Convert to a vanillaItemPredicate
.
fromJsonArray(com.google.gson.JsonElement)
instead.