CLASS net/minecraft/class_1865 net/minecraft/recipe/RecipeSerializer COMMENT The recipe serializer controls the serialization and deserialization of COMMENT recipe content. The caller should handle the serialization of recipes' IDs. COMMENT COMMENT

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

If a recipe's serializer exists only on the server but not on the COMMENT client, the client will disconnect upon receiving the recipe; if a COMMENT recipe JSON intended for an absent recipe serializer is read, it is COMMENT skipped. FIELD field_17084 BLASTING Lnet/minecraft/class_3957; FIELD field_17085 SMOKING Lnet/minecraft/class_3957; FIELD field_17347 CAMPFIRE_COOKING Lnet/minecraft/class_3957; FIELD field_19421 REPAIR_ITEM Lnet/minecraft/class_1866; FIELD field_9028 ARMOR_DYE Lnet/minecraft/class_1866; FIELD field_9029 BOOK_CLONING Lnet/minecraft/class_1866; FIELD field_9030 SUSPICIOUS_STEW Lnet/minecraft/class_1866; FIELD field_9031 SHAPELESS Lnet/minecraft/class_1865; FIELD field_9034 FIREWORK_STAR_FADE Lnet/minecraft/class_1866; FIELD field_9035 SHAPED Lnet/minecraft/class_1865; FIELD field_9036 FIREWORK_STAR Lnet/minecraft/class_1866; FIELD field_9037 TIPPED_ARROW Lnet/minecraft/class_1866; FIELD field_9038 BANNER_DUPLICATE Lnet/minecraft/class_1866; FIELD field_9039 MAP_EXTENDING Lnet/minecraft/class_1866; FIELD field_9040 SHIELD_DECORATION Lnet/minecraft/class_1866; FIELD field_9041 SHULKER_BOX Lnet/minecraft/class_1866; FIELD field_9042 SMELTING Lnet/minecraft/class_3957; FIELD field_9043 FIREWORK_ROCKET Lnet/minecraft/class_1866; FIELD field_9044 MAP_CLONING Lnet/minecraft/class_1866; METHOD method_17724 register (Ljava/lang/String;Lnet/minecraft/class_1865;)Lnet/minecraft/class_1865; ARG 0 id ARG 1 serializer METHOD method_8121 read (Lnet/minecraft/class_2960;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1860; COMMENT Reads a recipe from a JSON object. COMMENT COMMENT @implNote If this throws any exception besides {@link com.google.gson.JsonParseException} COMMENT and {@link IllegalArgumentException}, it will terminate and affect loading COMMENT of all recipes from data packs beyond the current recipe. COMMENT COMMENT @throws com.google.gson.JsonParseException if the recipe JSON is incorrect COMMENT @return the read recipe ARG 1 id COMMENT the recipe's ID ARG 2 json COMMENT the recipe JSON METHOD method_8122 read (Lnet/minecraft/class_2960;Lnet/minecraft/class_2540;)Lnet/minecraft/class_1860; COMMENT Reads a recipe from a packet byte buf, usually on the client. COMMENT COMMENT

This can throw whatever exception the packet byte buf throws. This may be COMMENT called in the netty event loop than the client game engine thread. COMMENT COMMENT @return the read recipe ARG 1 id COMMENT the recipe's ID ARG 2 buf COMMENT the recipe buf METHOD method_8124 write (Lnet/minecraft/class_2540;Lnet/minecraft/class_1860;)V COMMENT Writes a recipe to a packet byte buf, usually on the server. COMMENT COMMENT

The recipe's ID is already written into the buf when this is called. COMMENT COMMENT

This can throw whatever exception the packet byte buf throws. This may be COMMENT called in the netty event loop than the server game engine thread. ARG 1 buf COMMENT the recipe buf ARG 2 recipe COMMENT the recipe