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 named net/minecraft/recipe/SpecialRecipeSerializer
intermediary net/minecraft/class_1866
official cyx
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.MapCodec
<T> private final PacketCodec
<RegistryByteBuf, T> Fields inherited from interface net.minecraft.recipe.RecipeSerializer
ARMOR_DYE, BANNER_DUPLICATE, BLASTING, BOOK_CLONING, CAMPFIRE_COOKING, CRAFTING_DECORATED_POT, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED, SHAPELESS, SHIELD_DECORATION, SHULKER_BOX, SMELTING, SMITHING_TRANSFORM, SMITHING_TRIM, SMOKING, STONECUTTING, SUSPICIOUS_STEW, TIPPED_ARROW
-
Constructor Summary
-
Method Summary
-
Field Details
-
codec
- Mappings:
Namespace Name Mixin selector named codec
Lnet/minecraft/recipe/SpecialRecipeSerializer;codec:Lcom/mojang/serialization/MapCodec;
intermediary field_46106
Lnet/minecraft/class_1866;field_46106:Lcom/mojang/serialization/MapCodec;
official x
Lcyx;x:Lcom/mojang/serialization/MapCodec;
-
packetCodec
- Mappings:
Namespace Name Mixin selector named packetCodec
Lnet/minecraft/recipe/SpecialRecipeSerializer;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48362
Lnet/minecraft/class_1866;field_48362:Lnet/minecraft/class_9139;
official y
Lcyx;y:Lys;
-
-
Constructor Details
-
SpecialRecipeSerializer
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/recipe/SpecialRecipeSerializer;<init>(Lnet/minecraft/recipe/SpecialRecipeSerializer$Factory;)V
intermediary <init>
Lnet/minecraft/class_1866;<init>(Lnet/minecraft/class_1866$class_7711;)V
official <init>
Lcyx;<init>(Lcyx$a;)V
-
-
Method Details
-
codec
- Specified by:
codec
in interfaceRecipeSerializer<T extends CraftingRecipe>
- 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
Lcyo;a()Lcom/mojang/serialization/MapCodec;
-
packetCodec
- Specified by:
packetCodec
in interfaceRecipeSerializer<T extends CraftingRecipe>
- 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
Lcyo;b()Lys;
-