net.minecraft.world.item.crafting

public final class Ingredient

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

ddq
net.minecraft.world.item.crafting.Ingredient
net.minecraft.class_1856
net.minecraft.unmapped.C_tcpsydrv
net.minecraft.recipe.Ingredient
net.minecraft.recipe.Ingredient

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, Ingredient>
a
CONTENTS_STREAM_CODEC
field_48355
f_pjjkidpf
PACKET_CODEC
PACKET_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Optional<Ingredient>>
b
OPTIONAL_CONTENTS_STREAM_CODEC
field_52595
f_qdqdigpw
OPTIONAL_PACKET_CODEC
OPTIONAL_PACKET_CODEC
public static final com.mojang.serialization.Codec<HolderSet<Item>>
c
NON_AIR_HOLDER_SET_CODEC
field_52596
f_qqfxxlfb
ENTRIES_CODEC
ENTRIES_CODEC
public static final com.mojang.serialization.Codec<Ingredient>
d
CODEC
field_46095
f_clxednmi
CODEC
ALLOW_EMPTY_CODEC
private final HolderSet<Item>
e
values
field_9019
f_kavmzocu
entries
entries

Constructor summary

ModifierConstructor
private (HolderSet<Item> entries)

Method summary

Modifier and TypeMethod
public static boolean
a(Optional<ddq> arg0, czd 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)
public Stream<Holder<Item>>
a()
items()
method_8105()
m_hiksyixf()
getMatchingItems()
getItems()
public boolean
b()
isEmpty()
method_65799()
m_agyeivdy()
isEmpty()
public boolean
a(czd arg0)
test(ItemStack arg0)
method_8093(class_1799 arg0)
m_isfuqawg(C_sddaxwyk arg0)
test(ItemStack arg0)
test(ItemStack stack)
public boolean
a(je<cyz> arg0)
acceptsItem(Holder<Item> arg0)
method_65798(class_6880<class_1792> arg0)
m_bvtymygr(C_cjzoxshv<C_vorddnax> arg0)
acceptsItem(RegistryEntry<Item> arg0)
acceptsItem(Holder<Item> arg0)
public static Ingredient
a(diz arg0)
of(ItemLike arg0)
method_8101(class_1935 arg0)
m_xqanmytq(C_gmbqjnle arg0)
ofItem(ItemConvertible item)
ofItem(ItemConvertible item)
public static Ingredient
a(diz... arg0)
of(ItemLike... arg0)
method_8091(class_1935... arg0)
m_mpihdccy(C_gmbqjnle... arg0)
ofItems(ItemConvertible... items)
ofItems(ItemConvertible... items)
public static Ingredient
a(Stream<? extends diz> 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)
public static Ingredient
a(ji<cyz> 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)
public SlotDisplay
c()
display()
method_64673()
m_lqlwthyg()
toDisplay()
getSlotDisplay()
public static SlotDisplay
a(Optional<ddq> 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)
private static SlotDisplay
b(je<cyz> 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)