Package net.minecraft.recipe
Class CookingRecipeSerializer<T extends AbstractCookingRecipe>
java.lang.Object
net.minecraft.recipe.CookingRecipeSerializer<T>
- All Implemented Interfaces:
RecipeSerializer<T>
public class CookingRecipeSerializer<T extends AbstractCookingRecipe>
extends Object
implements RecipeSerializer<T>
- Mappings:
Namespace Name named net/minecraft/recipe/CookingRecipeSerializer
intermediary net/minecraft/class_3957
official czj
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.MapCodec
<T> private final PacketCodec
<RegistryByteBuf, T> private final AbstractCookingRecipe.RecipeFactory
<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
ConstructorDescriptionCookingRecipeSerializer
(AbstractCookingRecipe.RecipeFactory<T> recipeFactory, int cookingTime) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<T> codec()
create
(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) private T
read
(RegistryByteBuf buf) private void
write
(RegistryByteBuf buf, T recipe)
-
Field Details
-
recipeFactory
- Mappings:
Namespace Name Mixin selector named recipeFactory
Lnet/minecraft/recipe/CookingRecipeSerializer;recipeFactory:Lnet/minecraft/recipe/AbstractCookingRecipe$RecipeFactory;
intermediary field_17552
Lnet/minecraft/class_3957;field_17552:Lnet/minecraft/class_1874$class_3958;
official x
Lczj;x:Lcyg$a;
-
codec
- Mappings:
Namespace Name Mixin selector named codec
Lnet/minecraft/recipe/CookingRecipeSerializer;codec:Lcom/mojang/serialization/MapCodec;
intermediary field_46105
Lnet/minecraft/class_3957;field_46105:Lcom/mojang/serialization/MapCodec;
official y
Lczj;y:Lcom/mojang/serialization/MapCodec;
-
packetCodec
- Mappings:
Namespace Name Mixin selector named packetCodec
Lnet/minecraft/recipe/CookingRecipeSerializer;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48361
Lnet/minecraft/class_3957;field_48361:Lnet/minecraft/class_9139;
official z
Lczj;z:Lzn;
-
-
Constructor Details
-
CookingRecipeSerializer
public CookingRecipeSerializer(AbstractCookingRecipe.RecipeFactory<T> recipeFactory, int cookingTime) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/recipe/CookingRecipeSerializer;<init>(Lnet/minecraft/recipe/AbstractCookingRecipe$RecipeFactory;I)V
intermediary <init>
Lnet/minecraft/class_3957;<init>(Lnet/minecraft/class_1874$class_3958;I)V
official <init>
Lczj;<init>(Lcyg$a;I)V
-
-
Method Details
-
codec
- Specified by:
codec
in interfaceRecipeSerializer<T extends AbstractCookingRecipe>
- 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
- Specified by:
packetCodec
in interfaceRecipeSerializer<T extends AbstractCookingRecipe>
- 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;
-
read
- Mappings:
Namespace Name Mixin selector named read
Lnet/minecraft/recipe/CookingRecipeSerializer;read(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/recipe/AbstractCookingRecipe;
intermediary method_17737
Lnet/minecraft/class_3957;method_17737(Lnet/minecraft/class_9129;)Lnet/minecraft/class_1874;
official a
Lczj;a(Lxa;)Lcyg;
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/recipe/CookingRecipeSerializer;write(Lnet/minecraft/network/RegistryByteBuf;Lnet/minecraft/recipe/AbstractCookingRecipe;)V
intermediary method_17735
Lnet/minecraft/class_3957;method_17735(Lnet/minecraft/class_9129;Lnet/minecraft/class_1874;)V
official a
Lczj;a(Lxa;Lcyg;)V
-
create
public AbstractCookingRecipe create(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/recipe/CookingRecipeSerializer;create(Ljava/lang/String;Lnet/minecraft/recipe/book/CookingRecipeCategory;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)Lnet/minecraft/recipe/AbstractCookingRecipe;
intermediary method_55104
Lnet/minecraft/class_3957;method_55104(Ljava/lang/String;Lnet/minecraft/class_7709;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)Lnet/minecraft/class_1874;
official a
Lczj;a(Ljava/lang/String;Lcym;Lcyu;Lcur;FI)Lcyg;
-