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
ConstructorDescriptionCompressedShapelessRecipe
(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, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getType
Methods 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:
getSerializer
in interfaceRecipe<CraftingInput>
- Overrides:
getSerializer
in classShapelessRecipe
-