Fixes #243
This commit is contained in:
parent
8f45d418e3
commit
842fa421ae
6 changed files with 11 additions and 7 deletions
|
@ -4,8 +4,10 @@ import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class BlockElectricCraftingTable extends BlockMachineBase {
|
public class BlockElectricCraftingTable extends BlockMachineBase {
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class BlockMachineBase extends BlockContainer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
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) {
|
public void onBlockAdded(World world, int x, int y, int z) {
|
||||||
|
|
|
@ -49,11 +49,11 @@ public class BlockChargeBench extends BlockMachineBase {
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void registerBlockIcons(IIconRegister icon) {
|
public void registerBlockIcons(IIconRegister icon) {
|
||||||
this.blockIcon = icon.registerIcon("techreborn:machine/machine_side");
|
this.blockIcon = icon.registerIcon("techreborn:machine/chargeBench_side");
|
||||||
this.iconFront = icon.registerIcon("techreborn:machine/machine_side");
|
this.iconFront = icon.registerIcon("techreborn:machine/chargeBench_side");
|
||||||
this.iconFrontOn = icon.registerIcon("techreborn:machine/machine_side");
|
this.iconFrontOn = icon.registerIcon("techreborn:machine/chargeBench_side");
|
||||||
this.iconTop = icon.registerIcon("techreborn:machine/machine_top");
|
this.iconTop = icon.registerIcon("techreborn:machine/chargeBench_side");
|
||||||
this.iconBottom = icon.registerIcon("techreborn:machine/machine_bottom");
|
this.iconBottom = icon.registerIcon("techreborn:machine/chargeBench_side");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -230,6 +230,8 @@ public class ModBlocks {
|
||||||
GameRegistry.registerBlock(machineframe, ItemBlockMachineFrame.class, "techreborn.machineFrame");
|
GameRegistry.registerBlock(machineframe, ItemBlockMachineFrame.class, "techreborn.machineFrame");
|
||||||
|
|
||||||
|
|
||||||
|
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
|
||||||
|
|
||||||
registerOreDict();
|
registerOreDict();
|
||||||
Core.logHelper.info("TechReborns Blocks Loaded");
|
Core.logHelper.info("TechReborns Blocks Loaded");
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import reborncore.common.packets.PacketHandler;
|
import reborncore.common.packets.PacketHandler;
|
||||||
|
|
||||||
public abstract class TileMachineBase extends TileEntity {
|
public class TileMachineBase extends TileEntity {
|
||||||
|
|
||||||
int rotation;
|
int rotation;
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue