net.minecraft.world.item.crafting

public final class Ingredient

implements Predicate<ItemStack>

dca
net.minecraft.world.item.crafting.Ingredient
net.minecraft.class_1856
net.minecraft.unmapped.C_tcpsydrv
net.minecraft.recipe.Ingredient
net.minecraft.recipe.Ingredient
net.minecraft.src.C_1462_
net.minecraft.world.item.crafting.RecipeItemStack

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, Ingredient>
a
CONTENTS_STREAM_CODEC
field_48355
f_pjjkidpf
PACKET_CODEC
PACKET_CODEC
f_317040_
public static final StreamCodec<RegistryFriendlyByteBuf, Optional<Ingredient>>
b
OPTIONAL_CONTENTS_STREAM_CODEC
field_52595
f_qdqdigpw
OPTIONAL_PACKET_CODEC
OPTIONAL_PACKET_CODEC
f_346305_
public static final com.mojang.serialization.Codec<HolderSet<Item>>
c
NON_AIR_HOLDER_SET_CODEC
field_52596
f_qqfxxlfb
ENTRIES_CODEC
ENTRIES_CODEC
f_346728_
public static final com.mojang.serialization.Codec<Ingredient>
d
CODEC
field_46095
f_clxednmi
CODEC
ALLOW_EMPTY_CODEC
f_291570_
private final HolderSet<Item>
e
values
field_9019
f_kavmzocu
entries
entries
f_43902_
private List<Holder<Item>>
f
items
field_9018
f_wpamqjgv
matchingItems
items
f_348647_

Constructor summary

ModifierConstructor
private (HolderSet<Item> entries)

Method summary

Modifier and TypeMethod
public static boolean
a(Optional<dca> arg0, cxp arg1)
testOptionalIngredient(Optional<Ingredient> arg0, ItemStack arg1)
method_61676(Optional<class_1856> arg0, class_1799 arg1)
m_nomwikbn(Optional<C_tcpsydrv> arg0, C_sddaxwyk arg1)
matches(Optional<Ingredient> ingredient, ItemStack stack)
testOptionalIngredient(Optional<Ingredient> optional, ItemStack stack)
m_354547_(Optional<C_1462_> p_367191_, C_1391_ p_364232_)
public List<Holder<Item>>
a()
items()
method_8105()
m_hiksyixf()
getMatchingItems()
getItems()
m_357234_()
public boolean
a(cxp arg0)
test(ItemStack arg0)
method_8093(class_1799 arg0)
m_isfuqawg(C_sddaxwyk arg0)
test(ItemStack arg0)
test(ItemStack stack)
test(C_1391_ arg0)
public static Ingredient
a(dhh arg0)
of(ItemLike arg0)
method_8101(class_1935 arg0)
m_xqanmytq(C_gmbqjnle arg0)
ofItem(ItemConvertible item)
ofItem(ItemConvertible item)
m_43927_(C_1595_ p_361218_)
public static Ingredient
a(dhh... arg0)
of(ItemLike... arg0)
method_8091(class_1935... arg0)
m_mpihdccy(C_gmbqjnle... arg0)
ofItems(ItemConvertible... items)
ofItems(ItemConvertible... items)
m_43929_(C_1595_... p_43930_)
public static Ingredient
a(Stream<? extends dhh> arg0)
of(Stream<? extends ItemLike> arg0)
method_26964(Stream<? extends class_1935> arg0)
m_ssxtwbyt(Stream<? extends C_gmbqjnle> arg0)
ofItems(Stream<? extends ItemConvertible> stacks)
ofStacks(Stream<? extends ItemConvertible> stacks)
m_43921_(Stream<? extends C_1595_> p_43922_)
public static Ingredient
a(ju<cxl> arg0)
of(HolderSet<Item> arg0)
method_8106(class_6885<class_1792> arg0)
m_owdzpelq(C_odfnijdo<C_vorddnax> arg0)
fromTag(RegistryEntryList<Item> tag)
ofItems(HolderSet<Item> entries)
m_204132_(C_203233_<C_1381_> p_369402_)
public SlotDisplay
b()
display()
method_64673()
m_lqlwthyg()
toDisplay()
getSlotDisplay()
m_356927_()
public static SlotDisplay
a(Optional<dca> arg0)
optionalIngredientToDisplay(Optional<Ingredient> arg0)
method_64980(Optional<class_1856> arg0)
m_kkrsbepq(Optional<C_tcpsydrv> arg0)
toDisplay(Optional<Ingredient> ingredient)
createOptionalSlotDisplay(Optional<Ingredient> ingredient)
m_355765_(Optional<C_1462_> p_361451_)
private static SlotDisplay
a(jq<cxl> arg0)
displayForSingleItem(Holder<Item> arg0)
method_64981(class_6880<class_1792> arg0)
m_tmzbacdg(C_cjzoxshv<C_vorddnax> arg0)
createDisplayWithRemainder(RegistryEntry<Item> displayedItem)
createSingleItemDisplay(Holder<Item> item)
m_355132_(C_203228_<C_1381_> p_363723_)