Package hiiragi283.lib.recipe.ingredient
Class HTMaterialPartIngredient
-
- All Implemented Interfaces:
-
net.neoforged.neoforge.common.crafting.ICustomIngredient
@JvmRecord() public final class HTMaterialPartIngredient extends Record implements ICustomIngredient
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapCodec<HTMaterialPartIngredient>CODECpublic final static StreamCodec<RegistryFriendlyByteBuf, HTMaterialPartIngredient>STREAM_CODECpublic final static IngredientType<HTMaterialPartIngredient>TYPEprivate final HolderSet<HTMaterialContents>contentsprivate final List<HTMaterialPartKey>partsprivate final BooleanisSimpleprivate final IngredientType<?>type
-
Constructor Summary
Constructors Constructor Description HTMaterialPartIngredient(HolderSet<HTMaterialContents> contents, List<HTMaterialPartKey> parts)
-
Method Summary
Modifier and Type Method Description final HolderSet<HTMaterialContents>getContents()final List<HTMaterialPartKey>getParts()Booleantest(ItemStack stack)Stream<Holder<Item>>items()BooleanisSimple()IngredientType<?>getType()-
Methods inherited from class hiiragi283.lib.recipe.ingredient.HTMaterialPartIngredient
getType, isSimple -
Methods inherited from class net.neoforged.neoforge.common.crafting.ICustomIngredient
display, toVanilla -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTMaterialPartIngredient
HTMaterialPartIngredient(HolderSet<HTMaterialContents> contents, List<HTMaterialPartKey> parts)
-
-
Method Detail
-
getContents
final HolderSet<HTMaterialContents> getContents()
-
getParts
final List<HTMaterialPartKey> getParts()
-
getType
IngredientType<?> getType()
-
-
-
-