From a15ed12159b091721fd8c6a063bc676f404c6a4d Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Tue, 28 Jan 2014 16:37:11 -0500 Subject: [PATCH] Added some overloads to BlockIOBase --- .../core/prefab/block/BlockIOBase.java | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/main/java/resonantinduction/core/prefab/block/BlockIOBase.java b/src/main/java/resonantinduction/core/prefab/block/BlockIOBase.java index a46e45fb..e752f97b 100644 --- a/src/main/java/resonantinduction/core/prefab/block/BlockIOBase.java +++ b/src/main/java/resonantinduction/core/prefab/block/BlockIOBase.java @@ -8,22 +8,30 @@ import net.minecraftforge.common.Configuration; import resonantinduction.core.Reference; import resonantinduction.core.ResonantInductionTabs; import resonantinduction.core.Settings; +import universalelectricity.api.UniversalElectricity; import calclavia.lib.prefab.block.BlockSidedIO; -/** - * Blocks that have specific sided input and output should extend this. +/** Blocks that have specific sided input and output should extend this. * - * @author Calclavia - * - */ + * @author Calclavia */ public class BlockIOBase extends BlockSidedIO { - public BlockIOBase(String name, int id) - { - super(Settings.CONFIGURATION.get(Configuration.CATEGORY_BLOCK, name, id).getInt(id), Material.piston); - this.setCreativeTab(ResonantInductionTabs.CORE); - this.setUnlocalizedName(Reference.PREFIX + name); - this.setTextureName(Reference.PREFIX + name); - this.setHardness(1f); - } + public BlockIOBase(String name) + { + this(name, Settings.getNextBlockID()); + } + + public BlockIOBase(String name, int id) + { + this(name, id, UniversalElectricity.machine); + } + + public BlockIOBase(String name, int id, Material material) + { + super(Settings.CONFIGURATION.get(Configuration.CATEGORY_BLOCK, name, id).getInt(id), material); + this.setCreativeTab(ResonantInductionTabs.CORE); + this.setUnlocalizedName(Reference.PREFIX + name); + this.setTextureName(Reference.PREFIX + name); + this.setHardness(1f); + } }