net.minecraft.advancements.critereon

public record ItemPredicate

cb
net.minecraft.advancements.critereon.ItemPredicate
net.minecraft.class_2073
net.minecraft.unmapped.C_afravpde
net.minecraft.predicate.item.ItemPredicate
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
f_baffcgsf
tag
tag
f_45029_
private final Optional<HolderSet<Item>>
c
items
comp_1784
f_zipcqdwu
items
items
f_151427_
private final MinMaxBounds$Ints
d
count
comp_1785
f_unmuvhdr
count
count
f_45031_
private final MinMaxBounds$Ints
e
durability
comp_1786
f_bywmemnt
durability
durability
f_45032_
private final List<EnchantmentPredicate>
f
enchantments
comp_1787
f_rumeafbo
enchantments
enchantments
f_45033_
private final List<EnchantmentPredicate>
g
storedEnchantments
comp_1788
f_rujewyja
storedEnchantments
storedEnchantments
f_45034_
private final Optional<Holder<Potion>>
h
potion
comp_1789
f_gmzwedyh
potion
potion
f_45035_
private final Optional<NbtPredicate>
i
nbt
comp_1790
f_gzmnszun
nbt
nbt
f_45036_
private static final com.mojang.serialization.Codec<HolderSet<Item>>
j
ITEMS_CODEC
field_45755
f_kxoywlvh
ITEM_ENTRY_LIST_CODEC
f_291586_
public static final com.mojang.serialization.Codec<ItemPredicate>
a
CODEC
field_45754
f_jzkgbumt
CODEC
f_291722_

Constructor summary

ModifierConstructor
public (Optional<TagKey<Item>> tag, Optional<HolderSet<Item>> items, MinMaxBounds$Ints count, MinMaxBounds$Ints durability, List<EnchantmentPredicate> enchantments, List<EnchantmentPredicate> storedEnchantments, Optional<Holder<Potion>> potion, Optional<NbtPredicate> nbt)

Method summary

Modifier and TypeMethod
public boolean
a(cjf arg0)
matches(ItemStack arg0)
method_8970(class_1799 arg0)
m_wzsvfrqv(C_sddaxwyk arg0)
test(ItemStack stack)
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)
m_nqcovmeo(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement el)
fromJson(com.google.gson.JsonElement el)
m_45051_(com.google.gson.JsonElement p_45052_)
public com.google.gson.JsonElement
a()
serializeToJson()
method_8971()
m_utreslrr()
toJson()
toJson()
m_45048_()
public static com.google.gson.JsonElement
a(List<cb> arg0)
serializeToJsonArray(List<ItemPredicate> arg0)
method_53164(List<class_2073> arg0)
m_drssolum(List<C_afravpde> 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)
m_iftxvtov(com.google.gson.JsonElement arg0)
deserializeAll(com.google.gson.JsonElement el)
deserializeAll(com.google.gson.JsonElement el)
m_45055_(com.google.gson.JsonElement p_45056_)
public Optional<TagKey<Item>>
b()
tag()
comp_1783()
m_qhyotoaf()
tag()
tag()
f_45029_()
public Optional<HolderSet<Item>>
c()
items()
comp_1784()
m_hyxdkyle()
items()
items()
f_151427_()
public MinMaxBounds$Ints
d()
count()
comp_1785()
m_llqjqmpt()
count()
count()
f_45031_()
public MinMaxBounds$Ints
e()
durability()
comp_1786()
m_mvplhhmf()
durability()
durability()
f_45032_()
public List<EnchantmentPredicate>
f()
enchantments()
comp_1787()
m_tljjpewk()
enchantments()
enchantments()
f_45033_()
public List<EnchantmentPredicate>
g()
storedEnchantments()
comp_1788()
m_ilqqhbno()
storedEnchantments()
storedEnchantments()
f_45034_()
public Optional<Holder<Potion>>
h()
potion()
comp_1789()
m_qfmekyto()
potion()
potion()
f_45035_()
public Optional<NbtPredicate>
i()
nbt()
comp_1790()
m_jfcpnrbu()
nbt()
nbt()
f_45036_()