This commit is contained in:
Modmuss50 2015-11-11 17:00:18 +00:00
parent 8f45d418e3
commit 842fa421ae
6 changed files with 11 additions and 7 deletions

View file

@ -4,8 +4,10 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class BlockElectricCraftingTable extends BlockMachineBase {

View file

@ -39,7 +39,7 @@ public class BlockMachineBase extends BlockContainer {
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
return null;
return new TileMachineBase();
}
public void onBlockAdded(World world, int x, int y, int z) {

View file

@ -49,11 +49,11 @@ public class BlockChargeBench extends BlockMachineBase {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister icon) {
this.blockIcon = icon.registerIcon("techreborn:machine/machine_side");
this.iconFront = icon.registerIcon("techreborn:machine/machine_side");
this.iconFrontOn = icon.registerIcon("techreborn:machine/machine_side");
this.iconTop = icon.registerIcon("techreborn:machine/machine_top");
this.iconBottom = icon.registerIcon("techreborn:machine/machine_bottom");
this.blockIcon = icon.registerIcon("techreborn:machine/chargeBench_side");
this.iconFront = icon.registerIcon("techreborn:machine/chargeBench_side");
this.iconFrontOn = icon.registerIcon("techreborn:machine/chargeBench_side");
this.iconTop = icon.registerIcon("techreborn:machine/chargeBench_side");
this.iconBottom = icon.registerIcon("techreborn:machine/chargeBench_side");
}
@Override