Improvements to cables.

This commit is contained in:
modmuss50 2017-06-12 10:47:38 +01:00
parent 7a8a152911
commit 007e8714fa
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
3 changed files with 35 additions and 3 deletions

View file

@ -47,6 +47,7 @@ import techreborn.blocks.transformers.BlockHVTransformer;
import techreborn.blocks.transformers.BlockLVTransformer;
import techreborn.blocks.transformers.BlockMVTransformer;
import techreborn.itemblocks.*;
import techreborn.parts.powerCables.EnumCableType;
import techreborn.tiles.*;
import techreborn.tiles.cable.TileCable;
import techreborn.tiles.fusionReactor.TileEntityFusionController;
@ -210,9 +211,12 @@ public class ModBlocks {
GameRegistry.registerTileEntity(TilePlayerDectector.class, "TilePlayerDectectorTR");
CABLE = new BlockCable();
registerBlock(CABLE,"cable");
registerBlock(CABLE, ItemBlockCable.class, "cable");
GameRegistry.registerTileEntity(TileCable.class, "TileCableTR");
Core.proxy.registerCustomBlockStateLocation(CABLE, "cable");
for (EnumCableType cableType : EnumCableType.values()) {
Core.proxy.registerSubBlockInventoryLocation(CABLE, cableType.ordinal(), "techreborn:cable", "inventory");//"type=" + cableType.getName().toLowerCase());
}
MACHINE_CASINGS = new BlockMachineCasing(Material.ROCK);
registerBlock(MACHINE_CASINGS, ItemBlockMachineCasing.class, "machinecasing");