net.minecraft.advancements.critereon

public class ItemPredicate

ca
net.minecraft.advancements.critereon.ItemPredicate
net.minecraft.class_2073
net.minecraft.predicate.item.ItemPredicate
net.minecraft.src.C_1529_
net.minecraft.advancements.critereon.CriterionConditionItem

Field summary

Modifier and TypeField
public static final ItemPredicate
a
ANY
field_9640
ANY
f_45028_
private final TagKey<Item>
b
tag
field_9643
tag
f_45029_
private final Set<Item>
c
items
field_9644
items
f_151427_
private final MinMaxBounds$Ints
d
count
field_9641
count
f_45031_
private final MinMaxBounds$Ints
e
durability
field_9646
durability
f_45032_
private final EnchantmentPredicate[]
f
enchantments
field_9647
enchantments
f_45033_
private final EnchantmentPredicate[]
g
storedEnchantments
field_20689
storedEnchantments
f_45034_
private final Potion
h
potion
field_9642
potion
f_45035_
private final NbtPredicate
i
nbt
field_9645
nbt
f_45036_

Constructor summary

ModifierConstructor
public ()
public (TagKey<Item> tag, Set<Item> items, MinMaxBounds$Ints count, MinMaxBounds$Ints durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, Potion potion, NbtPredicate nbt)

Method summary

Modifier and TypeMethod
public boolean
a(caa arg0)
matches(ItemStack arg0)
method_8970(class_1799 arg0)
test(ItemStack stack)
m_45049_(C_1391_ arg0)
public static ItemPredicate
a(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement arg0)
method_8969(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement el)
m_45051_(com.google.gson.JsonElement p_45052_)
public com.google.gson.JsonElement
a()
serializeToJson()
method_8971()
toJson()
m_45048_()
public static ItemPredicate[]
b(com.google.gson.JsonElement arg0)
fromJsonArray(com.google.gson.JsonElement arg0)
method_8972(com.google.gson.JsonElement arg0)
deserializeAll(com.google.gson.JsonElement el)
m_45055_(com.google.gson.JsonElement p_45056_)