Interface RecipeSerializer<T extends Recipe<?>>

All Known Implementing Classes:
AbstractCookingRecipe.Serializer, ShapedRecipe.Serializer, ShapelessRecipe.Serializer, SingleStackRecipe.Serializer, SmithingTransformRecipe.Serializer, SmithingTrimRecipe.Serializer, SpecialCraftingRecipe.SpecialRecipeSerializer, TransmuteRecipe.Serializer

public interface RecipeSerializer<T extends Recipe<?>>
The recipe serializer controls the deserialization of recipe content during data pack loading.

Even though they are referred to by the type field in recipe JSON format, they are stored in a registry with key minecraft:root/minecraft:recipe_serializer, and is hence named.

Mappings:
Namespace Name
named net/minecraft/recipe/RecipeSerializer
intermediary net/minecraft/class_1865
official dcn
  • Field Details

    • SHAPED

      static final RecipeSerializer<ShapedRecipe> SHAPED
      Mappings:
      Namespace Name Mixin selector
      named SHAPED Lnet/minecraft/recipe/RecipeSerializer;SHAPED:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9035 Lnet/minecraft/class_1865;field_9035:Lnet/minecraft/class_1865;
      official a Ldcn;a:Ldcn;
    • SHAPELESS

      static final RecipeSerializer<ShapelessRecipe> SHAPELESS
      Mappings:
      Namespace Name Mixin selector
      named SHAPELESS Lnet/minecraft/recipe/RecipeSerializer;SHAPELESS:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9031 Lnet/minecraft/class_1865;field_9031:Lnet/minecraft/class_1865;
      official b Ldcn;b:Ldcn;
    • ARMOR_DYE

      static final RecipeSerializer<ArmorDyeRecipe> ARMOR_DYE
      Mappings:
      Namespace Name Mixin selector
      named ARMOR_DYE Lnet/minecraft/recipe/RecipeSerializer;ARMOR_DYE:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9028 Lnet/minecraft/class_1865;field_9028:Lnet/minecraft/class_1865;
      official c Ldcn;c:Ldcn;
    • BOOK_CLONING

      static final RecipeSerializer<BookCloningRecipe> BOOK_CLONING
      Mappings:
      Namespace Name Mixin selector
      named BOOK_CLONING Lnet/minecraft/recipe/RecipeSerializer;BOOK_CLONING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9029 Lnet/minecraft/class_1865;field_9029:Lnet/minecraft/class_1865;
      official d Ldcn;d:Ldcn;
    • MAP_CLONING

      static final RecipeSerializer<MapCloningRecipe> MAP_CLONING
      Mappings:
      Namespace Name Mixin selector
      named MAP_CLONING Lnet/minecraft/recipe/RecipeSerializer;MAP_CLONING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9044 Lnet/minecraft/class_1865;field_9044:Lnet/minecraft/class_1865;
      official e Ldcn;e:Ldcn;
    • MAP_EXTENDING

      static final RecipeSerializer<MapExtendingRecipe> MAP_EXTENDING
      Mappings:
      Namespace Name Mixin selector
      named MAP_EXTENDING Lnet/minecraft/recipe/RecipeSerializer;MAP_EXTENDING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9039 Lnet/minecraft/class_1865;field_9039:Lnet/minecraft/class_1865;
      official f Ldcn;f:Ldcn;
    • FIREWORK_ROCKET

      static final RecipeSerializer<FireworkRocketRecipe> FIREWORK_ROCKET
      Mappings:
      Namespace Name Mixin selector
      named FIREWORK_ROCKET Lnet/minecraft/recipe/RecipeSerializer;FIREWORK_ROCKET:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9043 Lnet/minecraft/class_1865;field_9043:Lnet/minecraft/class_1865;
      official g Ldcn;g:Ldcn;
    • FIREWORK_STAR

      static final RecipeSerializer<FireworkStarRecipe> FIREWORK_STAR
      Mappings:
      Namespace Name Mixin selector
      named FIREWORK_STAR Lnet/minecraft/recipe/RecipeSerializer;FIREWORK_STAR:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9036 Lnet/minecraft/class_1865;field_9036:Lnet/minecraft/class_1865;
      official h Ldcn;h:Ldcn;
    • FIREWORK_STAR_FADE

      static final RecipeSerializer<FireworkStarFadeRecipe> FIREWORK_STAR_FADE
      Mappings:
      Namespace Name Mixin selector
      named FIREWORK_STAR_FADE Lnet/minecraft/recipe/RecipeSerializer;FIREWORK_STAR_FADE:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9034 Lnet/minecraft/class_1865;field_9034:Lnet/minecraft/class_1865;
      official i Ldcn;i:Ldcn;
    • TIPPED_ARROW

      static final RecipeSerializer<TippedArrowRecipe> TIPPED_ARROW
      Mappings:
      Namespace Name Mixin selector
      named TIPPED_ARROW Lnet/minecraft/recipe/RecipeSerializer;TIPPED_ARROW:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9037 Lnet/minecraft/class_1865;field_9037:Lnet/minecraft/class_1865;
      official j Ldcn;j:Ldcn;
    • SHIELD_DECORATION

      static final RecipeSerializer<ShieldDecorationRecipe> SHIELD_DECORATION
      Mappings:
      Namespace Name Mixin selector
      named SHIELD_DECORATION Lnet/minecraft/recipe/RecipeSerializer;SHIELD_DECORATION:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9040 Lnet/minecraft/class_1865;field_9040:Lnet/minecraft/class_1865;
      official l Ldcn;l:Ldcn;
    • CRAFTING_TRANSMUTE

      static final RecipeSerializer<TransmuteRecipe> CRAFTING_TRANSMUTE
      Mappings:
      Namespace Name Mixin selector
      named CRAFTING_TRANSMUTE Lnet/minecraft/recipe/RecipeSerializer;CRAFTING_TRANSMUTE:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_54318 Lnet/minecraft/class_1865;field_54318:Lnet/minecraft/class_1865;
      official m Ldcn;m:Ldcn;
    • REPAIR_ITEM

      static final RecipeSerializer<RepairItemRecipe> REPAIR_ITEM
      Mappings:
      Namespace Name Mixin selector
      named REPAIR_ITEM Lnet/minecraft/recipe/RecipeSerializer;REPAIR_ITEM:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_19421 Lnet/minecraft/class_1865;field_19421:Lnet/minecraft/class_1865;
      official n Ldcn;n:Ldcn;
    • SMELTING

      static final RecipeSerializer<SmeltingRecipe> SMELTING
      Mappings:
      Namespace Name Mixin selector
      named SMELTING Lnet/minecraft/recipe/RecipeSerializer;SMELTING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_9042 Lnet/minecraft/class_1865;field_9042:Lnet/minecraft/class_1865;
      official o Ldcn;o:Ldcn;
    • BLASTING

      static final RecipeSerializer<BlastingRecipe> BLASTING
      Mappings:
      Namespace Name Mixin selector
      named BLASTING Lnet/minecraft/recipe/RecipeSerializer;BLASTING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_17084 Lnet/minecraft/class_1865;field_17084:Lnet/minecraft/class_1865;
      official p Ldcn;p:Ldcn;
    • SMOKING

      static final RecipeSerializer<SmokingRecipe> SMOKING
      Mappings:
      Namespace Name Mixin selector
      named SMOKING Lnet/minecraft/recipe/RecipeSerializer;SMOKING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_17085 Lnet/minecraft/class_1865;field_17085:Lnet/minecraft/class_1865;
      official q Ldcn;q:Ldcn;
    • CAMPFIRE_COOKING

      static final RecipeSerializer<CampfireCookingRecipe> CAMPFIRE_COOKING
      Mappings:
      Namespace Name Mixin selector
      named CAMPFIRE_COOKING Lnet/minecraft/recipe/RecipeSerializer;CAMPFIRE_COOKING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_17347 Lnet/minecraft/class_1865;field_17347:Lnet/minecraft/class_1865;
      official r Ldcn;r:Ldcn;
    • STONECUTTING

      static final RecipeSerializer<StonecuttingRecipe> STONECUTTING
      Mappings:
      Namespace Name Mixin selector
      named STONECUTTING Lnet/minecraft/recipe/RecipeSerializer;STONECUTTING:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_17640 Lnet/minecraft/class_1865;field_17640:Lnet/minecraft/class_1865;
      official s Ldcn;s:Ldcn;
    • SMITHING_TRANSFORM

      static final RecipeSerializer<SmithingTransformRecipe> SMITHING_TRANSFORM
      Mappings:
      Namespace Name Mixin selector
      named SMITHING_TRANSFORM Lnet/minecraft/recipe/RecipeSerializer;SMITHING_TRANSFORM:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_42027 Lnet/minecraft/class_1865;field_42027:Lnet/minecraft/class_1865;
      official t Ldcn;t:Ldcn;
    • SMITHING_TRIM

      static final RecipeSerializer<SmithingTrimRecipe> SMITHING_TRIM
      Mappings:
      Namespace Name Mixin selector
      named SMITHING_TRIM Lnet/minecraft/recipe/RecipeSerializer;SMITHING_TRIM:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_42028 Lnet/minecraft/class_1865;field_42028:Lnet/minecraft/class_1865;
      official u Ldcn;u:Ldcn;
    • CRAFTING_DECORATED_POT

      static final RecipeSerializer<CraftingDecoratedPotRecipe> CRAFTING_DECORATED_POT
      Mappings:
      Namespace Name Mixin selector
      named CRAFTING_DECORATED_POT Lnet/minecraft/recipe/RecipeSerializer;CRAFTING_DECORATED_POT:Lnet/minecraft/recipe/RecipeSerializer;
      intermediary field_42718 Lnet/minecraft/class_1865;field_42718:Lnet/minecraft/class_1865;
      official v Ldcn;v:Ldcn;
  • Method Details

    • codec

      com.mojang.serialization.MapCodec<T> codec()
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/recipe/RecipeSerializer;codec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53736 Lnet/minecraft/class_1865;method_53736()Lcom/mojang/serialization/MapCodec;
      official a Ldcn;a()Lcom/mojang/serialization/MapCodec;
    • packetCodec

      Deprecated.
      Recipe is no longer synced to the clients, making this obsolete.
      Returns the packet codec for serializing recipes over the network.
      Returns:
      the packet codec for serializing recipes over the network
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/recipe/RecipeSerializer;packetCodec()Lnet/minecraft/network/codec/PacketCodec;
      intermediary method_56104 Lnet/minecraft/class_1865;method_56104()Lnet/minecraft/class_9139;
      official b Ldcn;b()Lzt;
    • register

      static <S extends RecipeSerializer<T>, T extends Recipe<?>> S register(String id, S serializer)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/recipe/RecipeSerializer;register(Ljava/lang/String;Lnet/minecraft/recipe/RecipeSerializer;)Lnet/minecraft/recipe/RecipeSerializer;
      intermediary method_17724 Lnet/minecraft/class_1865;method_17724(Ljava/lang/String;Lnet/minecraft/class_1865;)Lnet/minecraft/class_1865;
      official a Ldcn;a(Ljava/lang/String;Ldcn;)Ldcn;