Package net.minecraft.recipe
Class SpecialRecipeSerializer<T extends CraftingRecipe>
java.lang.Object
net.minecraft.recipe.SpecialRecipeSerializer<T>
- All Implemented Interfaces:
RecipeSerializer<T>
public class SpecialRecipeSerializer<T extends CraftingRecipe>
extends Object
implements RecipeSerializer<T>
A serializer for hardcoded recipes. The recipes with this serializer don't
transport any extra data besides their ID when read from JSON or synchronized
over network.
The name "special" comes from the fact that in vanilla, recipes using this
serializer have IDs starting with crafting_special_. All of their logic and ingredients
are also defined in code, which distinguishes them from "non-special" recipes.
- Mappings:
Namespace Name official cgbintermediary net/minecraft/class_1866named net/minecraft/recipe/SpecialRecipeSerializer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Field Summary
FieldsFields inherited from interface net.minecraft.recipe.RecipeSerializer
ARMOR_DYE, BANNER_DUPLICATE, BLASTING, BOOK_CLONING, CAMPFIRE_COOKING, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED, SHAPELESS, SHIELD_DECORATION, SHULKER_BOX, SMELTING, SMITHING, SMOKING, STONECUTTING, SUSPICIOUS_STEW, TIPPED_ARROW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmethod_45442(PacketByteBuf packetByteBuf, T t) method_45443(Identifier identifier, JsonObject jsonObject) method_45444(Identifier identifier, PacketByteBuf packetByteBuf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.RecipeSerializer
read, read, write
-
Field Details
-
factory
- Mappings:
Namespace Name Mixin selector official vLcgb;v:Lcgb$a;intermediary field_9046Lnet/minecraft/class_1866;field_9046:Lnet/minecraft/class_1866$class_7711;named factoryLnet/minecraft/recipe/SpecialRecipeSerializer;factory:Lnet/minecraft/recipe/SpecialRecipeSerializer$Factory;
-
-
Constructor Details
-
SpecialRecipeSerializer
- Mappings:
Namespace Name Mixin selector official <init>Lcgb;<init>(Lcgb$a;)Vintermediary <init>Lnet/minecraft/class_1866;<init>(Lnet/minecraft/class_1866$class_7711;)Vnamed <init>Lnet/minecraft/recipe/SpecialRecipeSerializer;<init>(Lnet/minecraft/recipe/SpecialRecipeSerializer$Factory;)V
-
-
Method Details
-
method_45443
- Mappings:
Namespace Name Mixin selector official bLcgb;b(Labv;Lcom/google/gson/JsonObject;)Lcfj;intermediary method_45443Lnet/minecraft/class_1866;method_45443(Lnet/minecraft/class_2960;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_3955;named method_45443Lnet/minecraft/recipe/SpecialRecipeSerializer;method_45443(Lnet/minecraft/util/Identifier;Lcom/google/gson/JsonObject;)Lnet/minecraft/recipe/CraftingRecipe;
-
method_45444
- Mappings:
Namespace Name Mixin selector official bLcgb;b(Labv;Lrt;)Lcfj;intermediary method_45444Lnet/minecraft/class_1866;method_45444(Lnet/minecraft/class_2960;Lnet/minecraft/class_2540;)Lnet/minecraft/class_3955;named method_45444Lnet/minecraft/recipe/SpecialRecipeSerializer;method_45444(Lnet/minecraft/util/Identifier;Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/recipe/CraftingRecipe;
-
method_45442
- Mappings:
Namespace Name Mixin selector official aLcgb;a(Lrt;Lcfj;)Vintermediary method_45442Lnet/minecraft/class_1866;method_45442(Lnet/minecraft/class_2540;Lnet/minecraft/class_3955;)Vnamed method_45442Lnet/minecraft/recipe/SpecialRecipeSerializer;method_45442(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/recipe/CraftingRecipe;)V
-