2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1865 net/minecraft/recipe/RecipeSerializer
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT The recipe serializer controls the serialization and deserialization of
|
|
|
|
COMMENT recipe content. The caller should handle the serialization of recipes' IDs.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>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 <p>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.
|
2022-10-19 13:11:34 -04:00
|
|
|
FIELD field_17084 BLASTING Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_17085 SMOKING Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_17347 CAMPFIRE_COOKING Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_19421 REPAIR_ITEM Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9028 ARMOR_DYE Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9029 BOOK_CLONING Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9030 SUSPICIOUS_STEW Lnet/minecraft/class_1865;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_9031 SHAPELESS Lnet/minecraft/class_1865;
|
2022-10-19 13:11:34 -04:00
|
|
|
FIELD field_9034 FIREWORK_STAR_FADE Lnet/minecraft/class_1865;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_9035 SHAPED Lnet/minecraft/class_1865;
|
2022-10-19 13:11:34 -04:00
|
|
|
FIELD field_9036 FIREWORK_STAR Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9037 TIPPED_ARROW Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9038 BANNER_DUPLICATE Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9039 MAP_EXTENDING Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9040 SHIELD_DECORATION Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9041 SHULKER_BOX Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9042 SMELTING Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9043 FIREWORK_ROCKET Lnet/minecraft/class_1865;
|
|
|
|
FIELD field_9044 MAP_CLONING Lnet/minecraft/class_1865;
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_17724 register (Ljava/lang/String;Lnet/minecraft/class_1865;)Lnet/minecraft/class_1865;
|
2019-01-17 07:18:48 -05:00
|
|
|
ARG 0 id
|
|
|
|
ARG 1 serializer
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_8121 read (Lnet/minecraft/class_2960;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1860;
|
2021-07-10 07:28:34 -04:00
|
|
|
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
|
2019-01-17 07:18:48 -05:00
|
|
|
ARG 1 id
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT the recipe's ID
|
2019-01-17 07:18:48 -05:00
|
|
|
ARG 2 json
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT the recipe JSON
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_8122 read (Lnet/minecraft/class_2960;Lnet/minecraft/class_2540;)Lnet/minecraft/class_1860;
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT Reads a recipe from a packet byte buf, usually on the client.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>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
|
2019-01-17 07:18:48 -05:00
|
|
|
ARG 1 id
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT the recipe's ID
|
2019-01-17 07:18:48 -05:00
|
|
|
ARG 2 buf
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT the recipe buf
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_8124 write (Lnet/minecraft/class_2540;Lnet/minecraft/class_1860;)V
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT Writes a recipe to a packet byte buf, usually on the server.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The recipe's ID is already written into the buf when this is called.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>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.
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 buf
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT the recipe buf
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 2 recipe
|
2021-07-10 07:28:34 -04:00
|
|
|
COMMENT the recipe
|