use of buildcraft.silicon.ItemRedstoneChipset in project BuildCraft by BuildCraft.
the class BuildCraftSilicon method preInit.
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent evt) {
BuildCraftCore.mainConfigManager.register("power.chipsetCostMultiplier", 1.0D, "The cost multiplier for Chipsets", RestartRequirement.GAME);
BuildCraftCore.mainConfiguration.save();
chipsetCostMultiplier = (float) BuildCraftCore.mainConfigManager.get("power.chipsetCostMultiplier").getDouble();
if (BuildCraftCore.mainConfiguration.hasChanged()) {
BuildCraftCore.mainConfiguration.save();
}
laserBlock = (BlockLaser) CompatHooks.INSTANCE.getBlock(BlockLaser.class);
laserBlock.setUnlocalizedName("laserBlock");
BCRegistry.INSTANCE.registerBlock(laserBlock, false);
assemblyTableBlock = (BlockLaserTable) CompatHooks.INSTANCE.getBlock(BlockLaserTable.class);
assemblyTableBlock.setUnlocalizedName("laserTableBlock");
BCRegistry.INSTANCE.registerBlock(assemblyTableBlock, ItemLaserTable.class, false);
redstoneChipset = new ItemRedstoneChipset();
redstoneChipset.setUnlocalizedName("redstoneChipset");
BCRegistry.INSTANCE.registerItem(redstoneChipset, false);
redstoneChipset.registerItemStacks();
redstoneCrystal = (new ItemBuildCraft()).setUnlocalizedName("redstoneCrystal");
if (BCRegistry.INSTANCE.registerItem(redstoneCrystal, false)) {
// Deprecated
OreDictionary.registerOre("redstoneCrystal", new ItemStack(redstoneCrystal));
OreDictionary.registerOre("crystalRedstone", new ItemStack(redstoneCrystal));
}
SiliconProxy.proxy.preInit();
}
Aggregations