Class IngredientTests.CompressedShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
net.neoforged.neoforge.debug.crafting.IngredientTests.CompressedShapelessRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe
,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
- Enclosing class:
IngredientTests
static class IngredientTests.CompressedShapelessRecipe
extends net.minecraft.world.item.crafting.ShapelessRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
net.minecraft.world.item.crafting.ShapelessRecipe.Serializer
-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionCompressedShapelessRecipe
(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.ItemStack result, List<SizedIngredient> ingredients) CompressedShapelessRecipe
(net.minecraft.world.item.crafting.ShapelessRecipe uncompressed) -
Method Summary
Modifier and TypeMethodDescriptionprivate static List
<SizedIngredient> compressIngredients
(List<net.minecraft.world.item.crafting.Ingredient> ingredients) private static net.minecraft.core.NonNullList
<net.minecraft.world.item.crafting.Ingredient> decompressList
(List<SizedIngredient> ingredients) net.minecraft.world.item.crafting.RecipeSerializer
<net.minecraft.world.item.crafting.ShapelessRecipe> Methods inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
assemble, category, display, group, matches, placementInfo
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
getRemainingItems, getType, recipeBookCategory
Methods inherited from interface net.minecraft.world.item.crafting.Recipe
isSpecial, showNotification
-
Constructor Details
-
CompressedShapelessRecipe
public CompressedShapelessRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.ItemStack result, List<SizedIngredient> ingredients) -
CompressedShapelessRecipe
public CompressedShapelessRecipe(net.minecraft.world.item.crafting.ShapelessRecipe uncompressed)
-
-
Method Details
-
decompressList
private static net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> decompressList(List<SizedIngredient> ingredients) -
compressIngredients
private static List<SizedIngredient> compressIngredients(List<net.minecraft.world.item.crafting.Ingredient> ingredients) -
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapelessRecipe> getSerializer()- Specified by:
getSerializer
in interfacenet.minecraft.world.item.crafting.CraftingRecipe
- Specified by:
getSerializer
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
- Overrides:
getSerializer
in classnet.minecraft.world.item.crafting.ShapelessRecipe
-