Class ShapelessRecipe.Serializer
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe.Serializer
- All Implemented Interfaces:
RecipeSerializer<ShapelessRecipe>
- Enclosing class:
ShapelessRecipe
public static class ShapelessRecipe.Serializer
extends Object
implements RecipeSerializer<ShapelessRecipe>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.MapCodec
<ShapelessRecipe> static final StreamCodec
<RegistryFriendlyByteBuf, ShapelessRecipe> 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
<ShapelessRecipe> codec()
private static ShapelessRecipe
fromNetwork
(RegistryFriendlyByteBuf p_335962_) private static void
toNetwork
(RegistryFriendlyByteBuf p_329239_, ShapelessRecipe p_44282_)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
codec
- Specified by:
codec
in interfaceRecipeSerializer<ShapelessRecipe>
-
streamCodec
- Specified by:
streamCodec
in interfaceRecipeSerializer<ShapelessRecipe>
-
fromNetwork
-
toNetwork
-