Class IngredientTests.CompressedShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
net.neoforged.neoforge.debug.crafting.IngredientTests.CompressedShapelessRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingInput>
- Enclosing class:
IngredientTests
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
ShapelessRecipe.Serializer -
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCompressedShapelessRecipe(String group, CraftingBookCategory category, ItemStack result, List<SizedIngredient> ingredients) CompressedShapelessRecipe(ShapelessRecipe uncompressed) -
Method Summary
Modifier and TypeMethodDescriptionprivate static List<SizedIngredient> compressIngredients(NonNullList<Ingredient> ingredients) private static NonNullList<Ingredient> decompressList(List<SizedIngredient> ingredients) Methods inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
assemble, canCraftInDimensions, category, getGroup, getIngredients, getResultItem, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getTypeMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Constructor Details
-
CompressedShapelessRecipe
public CompressedShapelessRecipe(String group, CraftingBookCategory category, ItemStack result, List<SizedIngredient> ingredients) -
CompressedShapelessRecipe
-
-
Method Details
-
decompressList
-
compressIngredients
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<CraftingInput>- Overrides:
getSerializerin classShapelessRecipe
-