edited for ant script

This commit is contained in:
Rseifert 2013-04-10 06:32:01 -04:00
parent f8263c9b2b
commit 14aaefa6a4

View file

@ -4,6 +4,7 @@ import ic2.api.Ic2Recipes;
import ic2.api.Items;
import java.io.File;
import java.util.Arrays;
import java.util.logging.Logger;
import net.minecraft.block.Block;
@ -36,7 +37,9 @@ import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.Metadata;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@ -45,21 +48,34 @@ import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
@Mod(modid = AssemblyLine.CHANNEL, name = AssemblyLine.NAME, version = AssemblyLine.VERSION, dependencies = "after:BasicComponents; after:IC2")
@Mod(modid = AssemblyLine.CHANNEL, name = AssemblyLine.MOD_NAME, version = AssemblyLine.VERSION, dependencies = "after:BasicComponents; after:IC2", useMetadata = true)
@NetworkMod(channels = { AssemblyLine.CHANNEL }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketManager.class)
public class AssemblyLine
{
// @Mod Prerequisites
public static final String MAJOR_VERSION = "@MAJOR@";
public static final String MINOR_VERSION = "@MINOR@";
public static final String REVIS_VERSION = "@REVIS@";
public static final String BUILD_VERSION = "@BUILD@";
// @Mod
public static final String MOD_ID = "AssemblyLine";
public static final String MOD_NAME = "Assembly Line";
public static final String VERSION = MAJOR_VERSION + "." + MINOR_VERSION + "." + REVIS_VERSION + "." + BUILD_VERSION;
// @NetworkMod
public static final String CHANNEL = "AssemblyLine";
@SidedProxy(clientSide = "assemblyline.client.ClientProxy", serverSide = "assemblyline.common.CommonProxy")
public static CommonProxy proxy;
@Instance(AssemblyLine.CHANNEL)
public static AssemblyLine instance;
public static final String NAME = "Assembly Line";
public static final String VERSION = "0.3.0";
public static final String CHANNEL = "AssemblyLine";
@Metadata(AssemblyLine.MOD_ID)
public static ModMetadata meta;
public static final String DIRECTORY_NO_SLASH = "mods/assemblyline/";
public static final String DIRECTORY = "/" + DIRECTORY_NO_SLASH;
@ -98,7 +114,7 @@ public class AssemblyLine
public static Item itemDisk;
public static ItemStack ic2Wrench = null;
public static Logger FMLog = Logger.getLogger(AssemblyLine.NAME);
public static Logger FMLog = Logger.getLogger(AssemblyLine.MOD_NAME);
// TODO: MAKE THIS FALSE EVERY BUILD!
public static final boolean DEBUG = false;
@ -159,16 +175,18 @@ public class AssemblyLine
FMLog.info("Loaded: " + TranslationHelper.loadLanguages(LANGUAGE_PATH, LANGUAGES_SUPPORTED) + " languages.");
// Crane Controller
// GameRegistry.addRecipe(new ShapedOreRecipe(blockCraneController, new Object[] { "SFS",
// "MCM", "SMS", 'F', blockCraneFrame, 'S', "plateSteel", 'C', "advancedCircuit", 'I',
// "ingotSteel", 'M', "motor" }));
/* MCMOD.INFO FILE BUILDER? */
meta.modId = AssemblyLine.MOD_ID;
meta.name = AssemblyLine.MOD_NAME;
meta.description = "A mod that brings conveyor belt transporting systems to Minecraft.";
// Crane Frame
// GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockCraneFrame, 4), new
// Object[] { "ISI", "ISI", 'I', Item.ingotIron, 'S', Item.stick }));
// GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockCraneFrame, 4), new
// Object[] { "ISI", "ISI", 'I', "ingotBronze", 'S', Item.stick }));
meta.url = "http://calclavia.com/universalelectricity/?m=18";
meta.logoFile = "/al_logo.png";
meta.version = AssemblyLine.VERSION;
meta.authorList = Arrays.asList(new String[] { "DarkGuardsman, Briaman, Calclavia" });
meta.credits = "Please see the website.";
meta.autogenerated = false;
boolean ic2 = Loader.isModLoaded("IC2");
boolean ue = Loader.isModLoaded("BasicComponents");