net.minecraft.world.item.crafting

public final class Ingredient

implements StackedContents$IngredientInfo<Holder<Item>>, Predicate<ItemStack>

dbb
net.minecraft.world.item.crafting.Ingredient
net.minecraft.class_1856
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
PACKET_CODEC
f_317040_
public static final StreamCodec<RegistryFriendlyByteBuf, Optional<Ingredient>>
b
OPTIONAL_CONTENTS_STREAM_CODEC
field_52595
OPTIONAL_PACKET_CODEC
f_346305_
public static final com.mojang.serialization.Codec<HolderSet<Item>>
c
NON_AIR_HOLDER_SET_CODEC
field_52596
ENTRIES_CODEC
f_346728_
public static final com.mojang.serialization.Codec<Ingredient>
d
CODEC
field_46095
CODEC
f_291570_
private final HolderSet<Item>
e
values
field_9019
entries
f_43902_

Constructor summary

ModifierConstructor
private (HolderSet<Item> entries)

Method summary

Modifier and TypeMethod
public static boolean
a(Optional<dbb> arg0, cwq arg1)
testOptionalIngredient(Optional<Ingredient> arg0, ItemStack arg1)
method_61676(Optional<class_1856> arg0, class_1799 arg1)
matches(Optional<Ingredient> ingredient, ItemStack stack)
m_354547_(Optional<C_1462_> p_367191_, C_1391_ p_364232_)
public Stream<Holder<Item>>
a()
items()
method_8105()
getMatchingItems()
m_357234_()
public boolean
b()
isEmpty()
method_65799()
isEmpty()
m_374088_()
public boolean
a(cwq arg0)
test(ItemStack arg0)
method_8093(class_1799 arg0)
test(ItemStack arg0)
test(C_1391_ arg0)
public boolean
a(jr<cwm> arg0)
acceptsItem(Holder<Item> arg0)
method_65798(class_6880<class_1792> arg0)
acceptsItem(RegistryEntry<Item> arg0)
m_373991_(C_203228_<C_1381_> arg0)
public static Ingredient
a(dgi arg0)
of(ItemLike arg0)
method_8101(class_1935 arg0)
ofItem(ItemConvertible item)
m_43927_(C_1595_ p_361218_)
public static Ingredient
a(dgi... arg0)
of(ItemLike... arg0)
method_8091(class_1935... arg0)
ofItems(ItemConvertible... items)
m_43929_(C_1595_... p_43930_)
public static Ingredient
a(Stream<? extends dgi> arg0)
of(Stream<? extends ItemLike> arg0)
method_26964(Stream<? extends class_1935> arg0)
ofItems(Stream<? extends ItemConvertible> stacks)
m_43921_(Stream<? extends C_1595_> p_43922_)
public static Ingredient
a(jv<cwm> arg0)
of(HolderSet<Item> arg0)
method_8106(class_6885<class_1792> arg0)
fromTag(RegistryEntryList<Item> tag)
m_204132_(C_203233_<C_1381_> p_369402_)
public SlotDisplay
c()
display()
method_64673()
toDisplay()
m_356927_()
public static SlotDisplay
a(Optional<dbb> arg0)
optionalIngredientToDisplay(Optional<Ingredient> arg0)
method_64980(Optional<class_1856> arg0)
toDisplay(Optional<Ingredient> ingredient)
m_355765_(Optional<C_1462_> p_361451_)
private static SlotDisplay
b(jr<cwm> arg0)
displayForSingleItem(Holder<Item> arg0)
method_64981(class_6880<class_1792> arg0)
createDisplayWithRemainder(RegistryEntry<Item> displayedItem)
m_355132_(C_203228_<C_1381_> p_363723_)