Revert "Update the package name"

This reverts commit 0871831c46.
This commit is contained in:
Arona Jones committed 2014-12-14 23:49:01 +00:00
1 parent 27c532a4fc
commit c5edcf2f0c
139 files changed
+500 -577

No files matched your search

@@ -0,0 +1,49 @@
package info.jbcs.minecraft.chisel.compat;
import java.util.ArrayList;
import java.util.List;
import cpw.mods.fml.common.Loader;
public class ModIntegration {
private static List<IModIntegration> integratedMods = new ArrayList<IModIntegration>();
public static void addMod(Class<? extends IModIntegration> cls){
try{
IModIntegration obj = cls.newInstance();
if(Loader.isModLoaded(obj.getModId())){
integratedMods.add(obj);
}
} catch(Throwable throwable){
throwable.printStackTrace();
}
}
public static void init(){
try{
for(IModIntegration integration : integratedMods){
integration.onInit();
}
} catch (Throwable throwable){
throwable.printStackTrace();
}
}
public static void postInit(){
try {
for (IModIntegration integration : integratedMods){
integration.onPostInit();
}
} catch (Throwable throwable){
throwable.printStackTrace();
}
}
static interface IModIntegration{
String getModId();
void onInit();
void onPostInit();
}
}