net.minecraft.advancements.critereon

public record ItemPredicate

cb
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
private final Optional<TagKey<Item>>
b
tag
comp_1783
tag
f_45029_
private final Optional<HolderSet<Item>>
c
items
comp_1784
items
f_151427_
private final MinMaxBounds$Ints
d
count
comp_1785
count
f_45031_
private final MinMaxBounds$Ints
e
durability
comp_1786
durability
f_45032_
private final List<EnchantmentPredicate>
f
enchantments
comp_1787
enchantments
f_45033_
private final List<EnchantmentPredicate>
g
storedEnchantments
comp_1788
storedEnchantments
f_45034_
private final Optional<Holder<Potion>>
h
potion
comp_1789
potion
f_45035_
private final Optional<NbtPredicate>
i
nbt
comp_1790
nbt
f_45036_
private static final com.mojang.serialization.Codec<HolderSet<Item>>
j
ITEMS_CODEC
field_45755
ITEM_ENTRY_LIST_CODEC
f_291586_
public static final com.mojang.serialization.Codec<ItemPredicate>
a
CODEC
field_45754
CODEC
f_291722_

Constructor summary

ModifierConstructor
public (Optional<TagKey<Item>> f_151427_, Optional<HolderSet<Item>> f_45031_, MinMaxBounds$Ints count, MinMaxBounds$Ints durability, List<EnchantmentPredicate> f_45034_, List<EnchantmentPredicate> f_45035_, Optional<Holder<Potion>> f_45036_, Optional<NbtPredicate> arg7)

Method summary

Modifier and TypeMethod
public boolean
a(cjf arg0)
matches(ItemStack arg0)
method_8970(class_1799 arg0)
test(ItemStack stack)
m_45049_(C_1391_ arg0)
public static Optional<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 com.google.gson.JsonElement
a(List<cb> arg0)
serializeToJsonArray(List<ItemPredicate> arg0)
method_53164(List<class_2073> arg0)
toJson(List<ItemPredicate> predicates)
m_293790_(List<C_1529_> p_298997_)
public static List<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_)
public Optional<TagKey<Item>>
b()
tag()
comp_1783()
tag()
f_45029_()
public Optional<HolderSet<Item>>
c()
items()
comp_1784()
items()
f_151427_()
public MinMaxBounds$Ints
d()
count()
comp_1785()
count()
f_45031_()
public MinMaxBounds$Ints
e()
durability()
comp_1786()
durability()
f_45032_()
public List<EnchantmentPredicate>
f()
enchantments()
comp_1787()
enchantments()
f_45033_()
public List<EnchantmentPredicate>
g()
storedEnchantments()
comp_1788()
storedEnchantments()
f_45034_()
public Optional<Holder<Potion>>
h()
potion()
comp_1789()
potion()
f_45035_()
public Optional<NbtPredicate>
i()
nbt()
comp_1790()
nbt()
f_45036_()