@Override public boolean preInit() { this.setRegistryName("ore_fluid"); ForgeRegistries.BLOCKS.register(this); ItemBlockCore itemBlock = new ItemBlockCore(this); itemBlock.setRegistryName(this.getRegistryName()); ForgeRegistries.ITEMS.register(itemBlock); config(); oreClathrateOilSand = new ItemStack(this, 1, Type.CRUDE_OIL_SAND.getMetadata()); oreClathrateOilShale = new ItemStack(this, 1, Type.CRUDE_OIL_GRAVEL.getMetadata()); oreClathrateRedstone = new ItemStack(this, 1, Type.REDSTONE.getMetadata()); oreClathrateGlowstone = new ItemStack(this, 1, Type.GLOWSTONE.getMetadata()); oreClathrateEnder = new ItemStack(this, 1, Type.ENDER.getMetadata()); oreClathrateOilRedSand = new ItemStack(this, 1, Type.CRUDE_OIL_RED_SAND.getMetadata()); registerWithHandlers("oreClathrateOilSand", oreClathrateOilSand); registerWithHandlers("oreClathrateOilShale", oreClathrateOilShale); registerWithHandlers("oreClathrateRedstone", oreClathrateRedstone); registerWithHandlers("oreClathrateGlowstone", oreClathrateGlowstone); registerWithHandlers("oreClathrateEnder", oreClathrateEnder); registerWithHandlers("oreClathrateOilSand", oreClathrateOilRedSand); ThermalFoundation.proxy.addIModelRegister(this); return true; }
blockMithril = new ItemStack(this, 1, Type.MITHRIL.getMetadata()); registerWithHandlers("blockCopper", blockCopper); registerWithHandlers("blockTin", blockTin); registerWithHandlers("blockSilver", blockSilver); registerWithHandlers("blockLead", blockLead); registerWithHandlers("blockAluminum", blockAluminum); registerWithHandlers("blockNickel", blockNickel); registerWithHandlers("blockPlatinum", blockPlatinum); registerWithHandlers("blockIridium", blockIridium); registerWithHandlers("blockMithril", blockMithril);
oreMithril = new ItemStack(this, 1, Type.MITHRIL.getMetadata()); registerWithHandlers("oreCopper", oreCopper); registerWithHandlers("oreTin", oreTin); registerWithHandlers("oreSilver", oreSilver); registerWithHandlers("oreLead", oreLead); registerWithHandlers("oreAluminum", oreAluminum); registerWithHandlers("oreNickel", oreNickel); registerWithHandlers("orePlatinum", orePlatinum); registerWithHandlers("oreIridium", oreIridium); registerWithHandlers("oreMithril", oreMithril);
@Override public boolean preInit() { this.setRegistryName("storage_alloy"); ForgeRegistries.BLOCKS.register(this); ItemBlockCore itemBlock = new ItemBlockCore(this); itemBlock.setRegistryName(this.getRegistryName()); ForgeRegistries.ITEMS.register(itemBlock); blockSteel = new ItemStack(this, 1, Type.STEEL.getMetadata()); blockElectrum = new ItemStack(this, 1, Type.ELECTRUM.getMetadata()); blockInvar = new ItemStack(this, 1, Type.INVAR.getMetadata()); blockBronze = new ItemStack(this, 1, Type.BRONZE.getMetadata()); blockConstantan = new ItemStack(this, 1, Type.CONSTANTAN.getMetadata()); blockSignalum = new ItemStack(this, 1, Type.SIGNALUM.getMetadata()); blockLumium = new ItemStack(this, 1, Type.LUMIUM.getMetadata()); blockEnderium = new ItemStack(this, 1, Type.ENDERIUM.getMetadata()); registerWithHandlers("blockSteel", blockSteel); registerWithHandlers("blockElectrum", blockElectrum); registerWithHandlers("blockInvar", blockInvar); registerWithHandlers("blockBronze", blockBronze); registerWithHandlers("blockConstantan", blockConstantan); registerWithHandlers("blockSignalum", blockSignalum); registerWithHandlers("blockLumium", blockLumium); registerWithHandlers("blockEnderium", blockEnderium); ThermalFoundation.proxy.addIModelRegister(this); for (int i = 0; i < Type.values().length; i++) { TFProps.blockList.add(new ItemStack(this, 1, i)); } return true; }
@Override public boolean preInit() { this.setRegistryName("storage"); ForgeRegistries.BLOCKS.register(this); ItemBlockCore itemBlock = new ItemBlockCore(this); itemBlock.setRegistryName(this.getRegistryName()); ForgeRegistries.ITEMS.register(itemBlock); blockElectrumFlux = new ItemStack(this, 1, Type.ELECTRUM_FLUX.getMetadata()); blockCrystalFlux = new ItemStack(this, 1, Type.CRYSTAL_FLUX.getMetadata()); registerWithHandlers("blockElectrumFlux", blockElectrumFlux); registerWithHandlers("blockCrystalFlux", blockCrystalFlux); RedstoneArsenal.proxy.addIModelRegister(this); return true; }
@Override public boolean preInit() { this.setRegistryName("storage_resource"); ForgeRegistries.BLOCKS.register(this); ItemBlockCore itemBlock = new ItemBlockCore(this); itemBlock.setRegistryName(this.getRegistryName()); ForgeRegistries.ITEMS.register(itemBlock); blockCharcoal = new ItemStack(this, 1, Type.CHARCOAL.getMetadata()); blockCoke = new ItemStack(this, 1, Type.COKE.getMetadata()); registerWithHandlers("blockCharcoal", blockCharcoal); registerWithHandlers("blockFuelCoke", blockCoke); ThermalFoundation.proxy.addIModelRegister(this); return true; }