net.minecraft.recipe

public final class Ingredient

implements Predicate<ItemStack>, RecipeMatcher$RawIngredient<RegistryEntry<Item>>

net.minecraft.world.item.crafting.Ingredient
net.minecraft.world.item.crafting.Ingredient
net.minecraft.class_1856
net.minecraft.recipe.Ingredient

Field summary

Modifier and TypeField
public static final PacketCodec<RegistryByteBuf, Ingredient>
CONTENTS_STREAM_CODEC
CONTENTS_STREAM_CODEC
field_48355
PACKET_CODEC
public static final PacketCodec<RegistryByteBuf, Optional<Ingredient>>
OPTIONAL_CONTENTS_STREAM_CODEC
OPTIONAL_CONTENTS_STREAM_CODEC
field_52595
OPTIONAL_PACKET_CODEC
public static final com.mojang.serialization.Codec<RegistryEntryList<Item>>
NON_AIR_HOLDER_SET_CODEC
NON_AIR_HOLDER_SET_CODEC
field_52596
ENTRIES_CODEC
public static final com.mojang.serialization.Codec<Ingredient>
CODEC
CODEC
field_46095
CODEC
private final RegistryEntryList<Item>
values
values
field_9019
entries

Constructor summary

ModifierConstructor
private (RegistryEntryList<Item> entries)

Method summary

Modifier and TypeMethod
public static boolean
testOptionalIngredient(Optional<Ingredient> ingredient, ItemStack stack)
testOptionalIngredient(Optional<Ingredient> ingredient, ItemStack stack)
method_61676(Optional<class_1856> arg0, class_1799 arg1)
matches(Optional<Ingredient> ingredient, ItemStack stack)
public Stream<RegistryEntry<Item>>
items()
items()
method_8105()
getMatchingItems()
public boolean
isEmpty()
isEmpty()
method_65799()
isEmpty()
public boolean
test(ItemStack input)
test(ItemStack input)
method_8093(class_1799 arg0)
test(ItemStack arg0)
public boolean
acceptsItem(Holder<Item> item)
acceptsItem(Holder<Item> item)
method_65798(class_6880<class_1792> arg0)
acceptsItem(RegistryEntry<Item> arg0)
public static Ingredient
of(ItemLike itemLike)
of(ItemLike itemLike)
method_8101(class_1935 arg0)
ofItem(ItemConvertible item)
public static Ingredient
of(ItemLike... items)
of(ItemLike... items)
method_8091(class_1935... arg0)
ofItems(ItemConvertible... items)
public static Ingredient
of(Stream<? extends ItemLike> stream)
of(Stream<? extends ItemLike> stream)
method_26964(Stream<? extends class_1935> arg0)
ofItems(Stream<? extends ItemConvertible> stacks)
public static Ingredient
of(HolderSet<Item> tag)
of(HolderSet<Item> tag)
method_8106(class_6885<class_1792> arg0)
ofTag(RegistryEntryList<Item> tag)
public SlotDisplay
display()
display()
method_64673()
toDisplay()
public static SlotDisplay
optionalIngredientToDisplay(Optional<Ingredient> ingredient)
optionalIngredientToDisplay(Optional<Ingredient> ingredient)
method_64980(Optional<class_1856> arg0)
toDisplay(Optional<Ingredient> ingredient)
private static SlotDisplay
displayForSingleItem(Holder<Item> item)
displayForSingleItem(Holder<Item> item)
method_64981(class_6880<class_1792> arg0)
createDisplayWithRemainder(RegistryEntry<Item> displayedItem)