/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.mojang.serialization.MapCodec */ package net.minecraft.world.item.crafting; import com.mojang.serialization.MapCodec; import net.minecraft.core.Registry; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.world.item.crafting.AbstractCookingRecipe; import net.minecraft.world.item.crafting.ArmorDyeRecipe; import net.minecraft.world.item.crafting.BannerDuplicateRecipe; import net.minecraft.world.item.crafting.BlastingRecipe; import net.minecraft.world.item.crafting.BookCloningRecipe; import net.minecraft.world.item.crafting.CampfireCookingRecipe; import net.minecraft.world.item.crafting.CustomRecipe; import net.minecraft.world.item.crafting.DecoratedPotRecipe; import net.minecraft.world.item.crafting.FireworkRocketRecipe; import net.minecraft.world.item.crafting.FireworkStarFadeRecipe; import net.minecraft.world.item.crafting.FireworkStarRecipe; import net.minecraft.world.item.crafting.MapCloningRecipe; import net.minecraft.world.item.crafting.MapExtendingRecipe; import net.minecraft.world.item.crafting.Recipe; import net.minecraft.world.item.crafting.RepairItemRecipe; import net.minecraft.world.item.crafting.ShapedRecipe; import net.minecraft.world.item.crafting.ShapelessRecipe; import net.minecraft.world.item.crafting.ShieldDecorationRecipe; import net.minecraft.world.item.crafting.SingleItemRecipe; import net.minecraft.world.item.crafting.SmeltingRecipe; import net.minecraft.world.item.crafting.SmithingTransformRecipe; import net.minecraft.world.item.crafting.SmithingTrimRecipe; import net.minecraft.world.item.crafting.SmokingRecipe; import net.minecraft.world.item.crafting.StonecutterRecipe; import net.minecraft.world.item.crafting.TippedArrowRecipe; import net.minecraft.world.item.crafting.TransmuteRecipe; public interface RecipeSerializer> { public static final RecipeSerializer SHAPED_RECIPE = RecipeSerializer.register("crafting_shaped", new ShapedRecipe.Serializer()); public static final RecipeSerializer SHAPELESS_RECIPE = RecipeSerializer.register("crafting_shapeless", new ShapelessRecipe.Serializer()); public static final RecipeSerializer ARMOR_DYE = RecipeSerializer.register("crafting_special_armordye", new CustomRecipe.Serializer(ArmorDyeRecipe::new)); public static final RecipeSerializer BOOK_CLONING = RecipeSerializer.register("crafting_special_bookcloning", new CustomRecipe.Serializer(BookCloningRecipe::new)); public static final RecipeSerializer MAP_CLONING = RecipeSerializer.register("crafting_special_mapcloning", new CustomRecipe.Serializer(MapCloningRecipe::new)); public static final RecipeSerializer MAP_EXTENDING = RecipeSerializer.register("crafting_special_mapextending", new CustomRecipe.Serializer(MapExtendingRecipe::new)); public static final RecipeSerializer FIREWORK_ROCKET = RecipeSerializer.register("crafting_special_firework_rocket", new CustomRecipe.Serializer(FireworkRocketRecipe::new)); public static final RecipeSerializer FIREWORK_STAR = RecipeSerializer.register("crafting_special_firework_star", new CustomRecipe.Serializer(FireworkStarRecipe::new)); public static final RecipeSerializer FIREWORK_STAR_FADE = RecipeSerializer.register("crafting_special_firework_star_fade", new CustomRecipe.Serializer(FireworkStarFadeRecipe::new)); public static final RecipeSerializer TIPPED_ARROW = RecipeSerializer.register("crafting_special_tippedarrow", new CustomRecipe.Serializer(TippedArrowRecipe::new)); public static final RecipeSerializer BANNER_DUPLICATE = RecipeSerializer.register("crafting_special_bannerduplicate", new CustomRecipe.Serializer(BannerDuplicateRecipe::new)); public static final RecipeSerializer SHIELD_DECORATION = RecipeSerializer.register("crafting_special_shielddecoration", new CustomRecipe.Serializer(ShieldDecorationRecipe::new)); public static final RecipeSerializer TRANSMUTE = RecipeSerializer.register("crafting_transmute", new TransmuteRecipe.Serializer()); public static final RecipeSerializer REPAIR_ITEM = RecipeSerializer.register("crafting_special_repairitem", new CustomRecipe.Serializer(RepairItemRecipe::new)); public static final RecipeSerializer SMELTING_RECIPE = RecipeSerializer.register("smelting", new AbstractCookingRecipe.Serializer(SmeltingRecipe::new, 200)); public static final RecipeSerializer BLASTING_RECIPE = RecipeSerializer.register("blasting", new AbstractCookingRecipe.Serializer(BlastingRecipe::new, 100)); public static final RecipeSerializer SMOKING_RECIPE = RecipeSerializer.register("smoking", new AbstractCookingRecipe.Serializer(SmokingRecipe::new, 100)); public static final RecipeSerializer CAMPFIRE_COOKING_RECIPE = RecipeSerializer.register("campfire_cooking", new AbstractCookingRecipe.Serializer(CampfireCookingRecipe::new, 100)); public static final RecipeSerializer STONECUTTER = RecipeSerializer.register("stonecutting", new SingleItemRecipe.Serializer(StonecutterRecipe::new)); public static final RecipeSerializer SMITHING_TRANSFORM = RecipeSerializer.register("smithing_transform", new SmithingTransformRecipe.Serializer()); public static final RecipeSerializer SMITHING_TRIM = RecipeSerializer.register("smithing_trim", new SmithingTrimRecipe.Serializer()); public static final RecipeSerializer DECORATED_POT_RECIPE = RecipeSerializer.register("crafting_decorated_pot", new CustomRecipe.Serializer(DecoratedPotRecipe::new)); public MapCodec codec(); @Deprecated public StreamCodec streamCodec(); public static , T extends Recipe> S register(String name, S serializer) { return (S)Registry.register(BuiltInRegistries.RECIPE_SERIALIZER, name, serializer); } }