Package net.minecraft.recipe
Interface RecipeSerializer<T extends Recipe<?>>
- All Known Implementing Classes:
CookingRecipeSerializer
,CuttingRecipe.Serializer
,ShapedRecipe.Serializer
,ShapelessRecipe.Serializer
,SmithingTransformRecipe.Serializer
,SmithingTrimRecipe.Serializer
,SpecialRecipeSerializer
public interface RecipeSerializer<T extends Recipe<?>>
The recipe serializer controls the serialization and deserialization of
recipe content. The caller should handle the serialization of recipes' IDs.
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.
If a recipe's serializer exists only on the server but not on the client, the client will disconnect upon receiving the recipe; if a recipe JSON intended for an absent recipe serializer is read, it is skipped.
- Mappings:
Namespace Name named net/minecraft/recipe/RecipeSerializer
intermediary net/minecraft/class_1865
official czb
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RecipeSerializer
<ArmorDyeRecipe> static final RecipeSerializer
<BannerDuplicateRecipe> static final RecipeSerializer
<BlastingRecipe> static final RecipeSerializer
<BookCloningRecipe> static final RecipeSerializer
<CampfireCookingRecipe> static final RecipeSerializer
<CraftingDecoratedPotRecipe> static final RecipeSerializer
<FireworkRocketRecipe> static final RecipeSerializer
<FireworkStarRecipe> static final RecipeSerializer
<FireworkStarFadeRecipe> static final RecipeSerializer
<MapCloningRecipe> static final RecipeSerializer
<MapExtendingRecipe> static final RecipeSerializer
<RepairItemRecipe> static final RecipeSerializer
<ShapedRecipe> static final RecipeSerializer
<ShapelessRecipe> static final RecipeSerializer
<ShieldDecorationRecipe> static final RecipeSerializer
<ShulkerBoxColoringRecipe> static final RecipeSerializer
<SmeltingRecipe> static final RecipeSerializer
<SmithingTransformRecipe> static final RecipeSerializer
<SmithingTrimRecipe> static final RecipeSerializer
<SmokingRecipe> static final RecipeSerializer
<StonecuttingRecipe> static final RecipeSerializer
<SuspiciousStewRecipe> static final RecipeSerializer
<TippedArrowRecipe> -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<T> codec()
static <S extends RecipeSerializer<T>,
T extends Recipe<?>>
S
-
Field Details
-
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
Lczb;a:Lczb;
-
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
Lczb;b:Lczb;
-
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
Lczb;c:Lczb;
-
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
Lczb;d:Lczb;
-
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
Lczb;e:Lczb;
-
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
Lczb;f:Lczb;
-
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
Lczb;g:Lczb;
-
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
Lczb;h:Lczb;
-
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
Lczb;i:Lczb;
-
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
Lczb;j:Lczb;
-
BANNER_DUPLICATE
- Mappings:
Namespace Name Mixin selector named BANNER_DUPLICATE
Lnet/minecraft/recipe/RecipeSerializer;BANNER_DUPLICATE:Lnet/minecraft/recipe/RecipeSerializer;
intermediary field_9038
Lnet/minecraft/class_1865;field_9038:Lnet/minecraft/class_1865;
official k
Lczb;k:Lczb;
-
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
Lczb;l:Lczb;
-
SHULKER_BOX
- Mappings:
Namespace Name Mixin selector named SHULKER_BOX
Lnet/minecraft/recipe/RecipeSerializer;SHULKER_BOX:Lnet/minecraft/recipe/RecipeSerializer;
intermediary field_9041
Lnet/minecraft/class_1865;field_9041:Lnet/minecraft/class_1865;
official m
Lczb;m:Lczb;
-
SUSPICIOUS_STEW
- Mappings:
Namespace Name Mixin selector named SUSPICIOUS_STEW
Lnet/minecraft/recipe/RecipeSerializer;SUSPICIOUS_STEW:Lnet/minecraft/recipe/RecipeSerializer;
intermediary field_9030
Lnet/minecraft/class_1865;field_9030:Lnet/minecraft/class_1865;
official n
Lczb;n:Lczb;
-
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 o
Lczb;o:Lczb;
-
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 p
Lczb;p:Lczb;
-
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 q
Lczb;q:Lczb;
-
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 r
Lczb;r:Lczb;
-
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 s
Lczb;s:Lczb;
-
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 t
Lczb;t:Lczb;
-
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 u
Lczb;u:Lczb;
-
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 v
Lczb;v:Lczb;
-
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 w
Lczb;w:Lczb;
-
-
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
Lczb;a()Lcom/mojang/serialization/MapCodec;
-
packetCodec
PacketCodec<RegistryByteBuf,T> packetCodec()- 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
Lczb;b()Lzn;
-
register
- 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
Lczb;a(Ljava/lang/String;Lczb;)Lczb;
-