More work on base class

This commit is contained in:
Calclavia 2013-08-01 20:29:44 -04:00
parent 10dabcc941
commit d4cf9300c6
2 changed files with 45 additions and 6 deletions

View file

@ -54,12 +54,6 @@
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
</fileset>
<fileset dir="${dir.development}Modding-Library/resources/">
<exclude name=".git/**"/>
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
</fileset>
</copy>
<!--
<copy todir="APIContents">

View file

@ -2,11 +2,16 @@ package resonantinduction;
import java.io.File;
import net.minecraft.block.Block;
import net.minecraftforge.common.Configuration;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
/**
* @author Calclavia
@ -53,4 +58,44 @@ public class ResonantInduction
*/
public static final Configuration CONFIGURATION = new Configuration(new File(Loader.instance().getConfigDir(), NAME + ".cfg"));
/** Block ID by Jyzarc */
private static final int BLOCK_ID_PREFIX = 3200;
/** Item ID by Horfius */
private static final int ITEM_ID_PREFIX = 20150;
private static int NEXT_BLOCK_ID = BLOCK_ID_PREFIX;
private static int NEXT_ITEM_ID = ITEM_ID_PREFIX;
public static int getNextBlockID()
{
return NEXT_BLOCK_ID++;
}
public static int getNextItemID()
{
return NEXT_ITEM_ID++;
}
/**
* Blocks and Items
*/
public static Block blockTesla;
@EventHandler
public void preInit(FMLPreInitializationEvent evt)
{
}
@EventHandler
public void init(FMLInitializationEvent evt)
{
}
@EventHandler
public void preInit(FMLPostInitializationEvent evt)
{
}
}