Class ShapedRecipe.Serializer
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe.Serializer
- All Implemented Interfaces:
RecipeSerializer<ShapedRecipe>
- Enclosing class:
ShapedRecipe
public static class ShapedRecipe.Serializer
extends Object
implements RecipeSerializer<ShapedRecipe>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ShapedRecipe> static final StreamCodec
<RegistryFriendlyByteBuf, ShapedRecipe> Fields inherited from interface net.minecraft.world.item.crafting.RecipeSerializer
ARMOR_DYE, BANNER_DUPLICATE, BLASTING_RECIPE, BOOK_CLONING, CAMPFIRE_COOKING_RECIPE, DECORATED_POT_RECIPE, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED_RECIPE, SHAPELESS_RECIPE, SHIELD_DECORATION, SHULKER_BOX_COLORING, SMELTING_RECIPE, SMITHING_TRANSFORM, SMITHING_TRIM, SMOKING_RECIPE, STONECUTTER, SUSPICIOUS_STEW, TIPPED_ARROW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<ShapedRecipe> codec()
private static ShapedRecipe
fromNetwork
(RegistryFriendlyByteBuf p_319998_) private static void
toNetwork
(RegistryFriendlyByteBuf p_320738_, ShapedRecipe p_320586_)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
codec
- Specified by:
codec
in interfaceRecipeSerializer<ShapedRecipe>
-
streamCodec
- Specified by:
streamCodec
in interfaceRecipeSerializer<ShapedRecipe>
-
fromNetwork
-
toNetwork
-