Added some overloads to BlockIOBase
This commit is contained in:
parent
c1e6a6eb6e
commit
a15ed12159
1 changed files with 21 additions and 13 deletions
|
@ -8,19 +8,27 @@ import net.minecraftforge.common.Configuration;
|
||||||
import resonantinduction.core.Reference;
|
import resonantinduction.core.Reference;
|
||||||
import resonantinduction.core.ResonantInductionTabs;
|
import resonantinduction.core.ResonantInductionTabs;
|
||||||
import resonantinduction.core.Settings;
|
import resonantinduction.core.Settings;
|
||||||
|
import universalelectricity.api.UniversalElectricity;
|
||||||
import calclavia.lib.prefab.block.BlockSidedIO;
|
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 class BlockIOBase extends BlockSidedIO
|
||||||
{
|
{
|
||||||
|
public BlockIOBase(String name)
|
||||||
|
{
|
||||||
|
this(name, Settings.getNextBlockID());
|
||||||
|
}
|
||||||
|
|
||||||
public BlockIOBase(String name, int id)
|
public BlockIOBase(String name, int id)
|
||||||
{
|
{
|
||||||
super(Settings.CONFIGURATION.get(Configuration.CATEGORY_BLOCK, name, id).getInt(id), Material.piston);
|
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.setCreativeTab(ResonantInductionTabs.CORE);
|
||||||
this.setUnlocalizedName(Reference.PREFIX + name);
|
this.setUnlocalizedName(Reference.PREFIX + name);
|
||||||
this.setTextureName(Reference.PREFIX + name);
|
this.setTextureName(Reference.PREFIX + name);
|
||||||
|
|
Loading…
Reference in a new issue