public static void registerMyItem(Class<? extends MyItem> clazz, Item item, String iconPatch, String unlocalizedName, int id, EnumArmorMaterial material, int armorType, CreativeTabs tab, String name, ModelInfo[] modelInfo)
{
try {
item = clazz.getConstructor(clazz).newInstance(id, material, 0, armorType, modelInfo).setIconPatch(iconPatch).setCreativeTab(tab).setUnlocalizedName(unlocalizedName);
LanguageRegistry.addName(item, name);
armorList.add(item);
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
}
}