Package net.minecraft.recipe
Class ShapelessRecipe.Serializer
java.lang.Object
net.minecraft.recipe.ShapelessRecipe.Serializer
- All Implemented Interfaces:
RecipeSerializer<ShapelessRecipe>
- Enclosing class:
- ShapelessRecipe
public static class ShapelessRecipe.Serializer extends Object implements RecipeSerializer<ShapelessRecipe>
-
Field Summary
Fields inherited from interface net.minecraft.recipe.RecipeSerializer
ARMOR_DYE, BANNER_DUPLICATE, BLASTING, BOOK_CLONING, CAMPFIRE_COOKING, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED, SHAPELESS, SHIELD_DECORATION, SHULKER_BOX, SMELTING, SMITHING, SMOKING, STONECUTTING, SUSPICIOUS_STEW, TIPPED_ARROW
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description private static DefaultedList<Ingredient>
getIngredients(JsonArray json)
ShapelessRecipe
read(Identifier identifier, JsonObject jsonObject)
ShapelessRecipe
read(Identifier identifier, PacketByteBuf packetByteBuf)
void
write(PacketByteBuf packetByteBuf, ShapelessRecipe shapelessRecipe)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
read
- Specified by:
read
in interfaceRecipeSerializer<ShapelessRecipe>
-
getIngredients
-
read
- Specified by:
read
in interfaceRecipeSerializer<ShapelessRecipe>
-
write
- Specified by:
write
in interfaceRecipeSerializer<ShapelessRecipe>
-