package info.u_team.u_team_core.intern.init;

import info.u_team.u_team_core.UCoreMod;
import info.u_team.u_team_core.ingredient.ItemIngredient;
import info.u_team.u_team_core.intern.recipe.*;
import info.u_team.u_team_core.util.registry.CommonDeferredRegister;
import net.minecraft.item.crafting.*;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.crafting.CraftingHelper;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;

public class UCoreRecipeSerializers {
	
	public static final CommonDeferredRegister<IRecipeSerializer<?>> RECIPE_SERIALIZERS = CommonDeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, UCoreMod.MODID);
	
	public static final RegistryObject<SpecialRecipeSerializer<DyeableItemDyeRecipe>> CRAFTING_SPECIAL_ITEMDYE = RECIPE_SERIALIZERS.register("crafting_special_itemdye", () -> new SpecialRecipeSerializer<>(DyeableItemDyeRecipe::new));
	
	public static final RegistryObject<NoMirrorShapedRecipe.Serializer> NO_MIRROR_SHAPED = RECIPE_SERIALIZERS.register("crafting_shaped_no_mirror", NoMirrorShapedRecipe.Serializer::new);
	
	public static void register(IEventBus bus) {
		RECIPE_SERIALIZERS.register(bus);
		bus.addGenericListener(IRecipeSerializer.class, UCoreRecipeSerializers::registerIngredient);
	}
	
	private static void registerIngredient(Register<IRecipeSerializer<?>> event) {
		CraftingHelper.register(new ResourceLocation(UCoreMod.MODID, "item"), ItemIngredient.Serializer.INSTANCE);
	}
}

@@ -1237,190 +1237,8 @@
 ;%0A%09%0A
-%09public static void register(IEventBus bus) %7B%0A%09%09RECIPE_SERIALIZERS.register(bus);%0A%09%09bus.addGenericListener(IRecipeSerializer.class, UCoreRecipeSerializers::registerIngredient);%0A%09%7D%0A%09%0A
 %09pri
@@ -1425,10 +1425,192 @@
 CE);%0A%09%7D%0A
+%09%0A%09public static void register(IEventBus bus) %7B%0A%09%09RECIPE_SERIALIZERS.register(bus);%0A%09%09bus.addGenericListener(IRecipeSerializer.class, UCoreRecipeSerializers::registerIngredient);%0A%09%7D%0A
 %7D%0A

Move method a bit