package jp.crafterkina.pipes.common;

import lombok.Getter;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.InstanceFactory;
import net.minecraftforge.fml.common.SidedProxy;

import static jp.crafterkina.pipes.common.PipesCore.MOD_ID;

@Mod(modid = MOD_ID)
public enum PipesCore {
    INSTANCE;

    public static final String MOD_ID = "jp.crafterkina.pipes";

    @SuppressWarnings("NullableProblems")
    @SidedProxy(clientSide = "jp.crafterkina.pipes.client.ClientProxy", serverSide = "jp.crafterkina.pipes.server.ServerProxy")
    @Getter
    private static CommonProxy proxy;

    @InstanceFactory
    public static PipesCore getInstance(){
        return INSTANCE;
    }
}

@@ -31,16 +31,80 @@
 ommon;%0A%0A
+import jp.crafterkina.pipes.common.recipe.vanilla.CraftManager;%0A
 import l
@@ -159,16 +159,71 @@
 on.Mod;%0A
+import net.minecraftforge.fml.common.Mod.EventHandler;%0A
 import n
@@ -320,16 +320,86 @@
 edProxy;
+%0Aimport net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
 %0A%0Aimport
@@ -893,11 +893,137 @@
 E;%0A    %7D
+%0A%0A    @EventHandler%0A    private void preInit(FMLPreInitializationEvent event)%7B%0A        CraftManager.INSTANCE.register();%0A    %7D
 %0A%7D%0A

Call CraftRecipe Register Func on preInit