12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
public class ingotInit
{
//-Ingots: alloys
public static Item steelIngot = new IngotConstruct("Steel_ingot", 64, References.CTab.tabIngots);
public static Item redSteelIngot = new IngotConstruct("Redsteel_ingot", 64, References.CTab.tabIngots);
public static Item blueSteelIngot = new IngotConstruct("Bluesteel_ingot", 64, References.CTab.tabIngots);
//-Ingots: metals-ores
public static Item galliumIngot = new IngotConstruct("Gallium_ingot", 64, References.CTab.tabRawOres);
public static Item titaniumIngot = new IngotConstruct("Titanium_ingot", 64, References.CTab.tabRawOres);
public ingotInit()
{
//-Ingots: alloys
registerIngot(steelIngot);
registerIngot(redSteelIngot);
registerIngot(blueSteelIngot);
//-Ingots: metals-ores
registerIngot(galliumIngot);
registerIngot(titaniumIngot);
}
public void registerIngot(Item ingotItem)
{
IngotConstruct ingot = (IngotConstruct)ingotItem;
GameRegistry.registerItem(ingotItem, ingot.ingotName);
}
public static void registerIngotRender()
{
//-Ingot render: alloys
References.renderIngot.getItemModelMesher().register(steelIngot,
0,
new ModelResourceLocation(References.MODID + ":"
+ ((IngotConstruct) steelIngot).getIngotName(),
"inventory"));
References.renderIngot.getItemModelMesher().register(redSteelIngot,
0,
new ModelResourceLocation(References.MODID + ":"
+ ((IngotConstruct) redSteelIngot).getIngotName(),
"inventory"));
References.renderIngot.getItemModelMesher().register(blueSteelIngot,
0,
new ModelResourceLocation(References.MODID + ":"
+ ((IngotConstruct) blueSteelIngot).getIngotName(),
"inventory"));
//-Ingot render: metals-ores
References.renderIngot.getItemModelMesher().register(galliumIngot,
0,
new ModelResourceLocation(References.MODID + ":"
+ ((IngotConstruct) galliumIngot).getIngotName(),
"inventory"));
References.renderIngot.getItemModelMesher().register(titaniumIngot,
0,
new ModelResourceLocation(References.MODID + ":"
+ ((IngotConstruct) titaniumIngot).getIngotName(),
"inventory"));
}
}