package tehnut.xtones;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.relauncher.Side;
import tehnut.xtones.compat.CompatChisel;
import tehnut.xtones.network.MessageCycleXtone;

@Mod(modid = Xtones.ID, name = Xtones.NAME, version = "@VERSION@", acceptedMinecraftVersions = "[1.11,1.12]")
public class Xtones {

    // TODO - Implement JEI support so that looking up any variant will show the recipe

    public static final String ID = "xtones";
    public static final String NAME = "Xtones";
    public static final SimpleNetworkWrapper NETWORK_WRAPPER = new SimpleNetworkWrapper(ID);

    public static final CreativeTabs TAB = new CreativeTabs(ID) {
        @Override
        public ItemStack getTabIconItem() {
            return new ItemStack(RegistrarXtones.BASE);
        }

        @Override
        public boolean hasSearchBar() {
            return true;
        }
    };

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        NETWORK_WRAPPER.registerMessage(MessageCycleXtone.Handler.class, MessageCycleXtone.class, 0, Side.SERVER);

        if (Loader.isModLoaded("chisel"))
            CompatChisel.sendIMC();
    }
}

@@ -579,16 +579,72 @@
 1,1.12%5D%22
+, dependencies = %22required-after:forge@%5B14.21.0.2348,);%22
 )%0Apublic

Add minimum required Forge version