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>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<ShapedRecipe>
(package private) static final com.mojang.serialization.Codec<String>
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.Codec<ShapedRecipe>
codec()
fromNetwork
(FriendlyByteBuf p_44234_) void
toNetwork
(FriendlyByteBuf p_44227_, ShapedRecipe p_44228_)
-
Field Details
-
PATTERN_CODEC
-
SINGLE_CHARACTER_STRING_CODEC
-
CODEC
-
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
codec
- Specified by:
codec
in interfaceRecipeSerializer<ShapedRecipe>
-
fromNetwork
- Specified by:
fromNetwork
in interfaceRecipeSerializer<ShapedRecipe>
-
toNetwork
- Specified by:
toNetwork
in interfaceRecipeSerializer<ShapedRecipe>
-