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.world.item.crafting.RecipeItemStack

Field summary

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

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)
public Stream<Holder<Item>>
a()
items()
method_8105()
getMatchingItems()
public boolean
b()
isEmpty()
method_65799()
isEmpty()
public boolean
a(cwq arg0)
test(ItemStack arg0)
method_8093(class_1799 arg0)
test(ItemStack arg0)
public boolean
a(jr<cwm> arg0)
acceptsItem(Holder<Item> arg0)
method_65798(class_6880<class_1792> arg0)
acceptsItem(RegistryEntry<Item> arg0)
public static Ingredient
a(dgi arg0)
of(ItemLike arg0)
method_8101(class_1935 arg0)
ofItem(ItemConvertible item)
public static Ingredient
a(dgi... arg0)
of(ItemLike... arg0)
method_8091(class_1935... arg0)
ofItems(ItemConvertible... items)
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)
public static Ingredient
a(jv<cwm> arg0)
of(HolderSet<Item> arg0)
method_8106(class_6885<class_1792> arg0)
fromTag(RegistryEntryList<Item> tag)
public SlotDisplay
c()
display()
method_64673()
toDisplay()
public static SlotDisplay
a(Optional<dbb> arg0)
optionalIngredientToDisplay(Optional<Ingredient> arg0)
method_64980(Optional<class_1856> arg0)
toDisplay(Optional<Ingredient> ingredient)
private static SlotDisplay
b(jr<cwm> arg0)
displayForSingleItem(Holder<Item> arg0)
method_64981(class_6880<class_1792> arg0)
createDisplayWithRemainder(RegistryEntry<Item> displayedItem)