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.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
private List<Holder<Item>>
f
items
field_9018
matchingItems

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)
matches(Optional<Ingredient> ingredient, ItemStack stack)
public List<Holder<Item>>
a()
items()
method_8105()
getMatchingItems()
public boolean
a(cxp arg0)
test(ItemStack arg0)
method_8093(class_1799 arg0)
test(ItemStack arg0)
public static Ingredient
a(dhh arg0)
of(ItemLike arg0)
method_8101(class_1935 arg0)
ofItem(ItemConvertible item)
public static Ingredient
a(dhh... arg0)
of(ItemLike... arg0)
method_8091(class_1935... arg0)
ofItems(ItemConvertible... items)
public static Ingredient
a(Stream<? extends dhh> arg0)
of(Stream<? extends ItemLike> arg0)
method_26964(Stream<? extends class_1935> arg0)
ofItems(Stream<? extends ItemConvertible> stacks)
public static Ingredient
a(ju<cxl> arg0)
of(HolderSet<Item> arg0)
method_8106(class_6885<class_1792> arg0)
fromTag(RegistryEntryList<Item> tag)
public SlotDisplay
b()
display()
method_64673()
toDisplay()
public static SlotDisplay
a(Optional<dca> arg0)
optionalIngredientToDisplay(Optional<Ingredient> arg0)
method_64980(Optional<class_1856> arg0)
toDisplay(Optional<Ingredient> ingredient)
private static SlotDisplay
a(jq<cxl> arg0)
displayForSingleItem(Holder<Item> arg0)
method_64981(class_6880<class_1792> arg0)
createDisplayWithRemainder(RegistryEntry<Item> displayedItem)