allowing block breakers and placers to exist and testable, not functional yet
This commit is contained in:
parent
9bfcc10ed2
commit
7a97fa4b29
3 changed files with 15 additions and 4 deletions
|
@ -12,6 +12,8 @@ import resonantinduction.core.Settings;
|
|||
import resonantinduction.core.TabRI;
|
||||
import resonantinduction.mechanical.belt.BlockConveyorBelt;
|
||||
import resonantinduction.mechanical.belt.TileConveyorBelt;
|
||||
import resonantinduction.mechanical.blockeditor.BlockTileBreaker;
|
||||
import resonantinduction.mechanical.blockeditor.BlockTilePlacer;
|
||||
import resonantinduction.mechanical.energy.gear.ItemGear;
|
||||
import resonantinduction.mechanical.energy.gear.ItemGearShaft;
|
||||
import resonantinduction.mechanical.energy.grid.MechanicalNode;
|
||||
|
@ -99,6 +101,10 @@ public class Mechanical
|
|||
public static Block blockMixer;
|
||||
public static Block blockMechanicalPiston;
|
||||
|
||||
// Block Breaker and Placer
|
||||
public static Block blockTileBreaker;
|
||||
public static Block blockTilePlacer;
|
||||
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent evt)
|
||||
{
|
||||
|
@ -131,6 +137,9 @@ public class Mechanical
|
|||
blockMechanicalPiston = contentRegistry.newBlock(TileMechanicalPiston.class);
|
||||
OreDictionary.registerOre("gear", itemGear);
|
||||
|
||||
blockTileBreaker = contentRegistry.newBlock(BlockTileBreaker.class);
|
||||
blockTilePlacer = contentRegistry.newBlock(BlockTilePlacer.class);
|
||||
|
||||
proxy.preInit();
|
||||
Settings.CONFIGURATION.save();
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ import net.minecraft.block.material.Material;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import resonantinduction.core.ResonantInduction;
|
||||
|
||||
/**
|
||||
* @since 18/03/14
|
||||
|
@ -14,14 +15,15 @@ import net.minecraftforge.common.ForgeDirection;
|
|||
public class BlockTileBreaker extends TileInventory
|
||||
{
|
||||
|
||||
public BlockTileBreaker (String name, Material material)
|
||||
public BlockTileBreaker ()
|
||||
{
|
||||
super(name, material);
|
||||
super("BlockTileBreaker", Material.iron);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWeakRedstonePower (IBlockAccess access, int side)
|
||||
{
|
||||
ResonantInduction.LOGGER.info("Calling Weak Red on tile ");
|
||||
int facing = access.getBlockMetadata(x(), y(), z());
|
||||
if (facing != side)
|
||||
{
|
||||
|
|
|
@ -11,9 +11,9 @@ import net.minecraftforge.common.ForgeDirection;
|
|||
*/
|
||||
public class BlockTilePlacer extends TileInventory
|
||||
{
|
||||
public BlockTilePlacer (String name, Material material)
|
||||
public BlockTilePlacer ()
|
||||
{
|
||||
super(name, material);
|
||||
super("BlockTilePlacer", Material.iron);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue