Added platecuttingmachine
This commit is contained in:
parent
a732052f49
commit
78afb4b57f
3 changed files with 66 additions and 0 deletions
|
@ -0,0 +1,61 @@
|
|||
package techreborn.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import techreborn.Core;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.tiles.TileAlloySmelter;
|
||||
import techreborn.tiles.TileBlastFurnace;
|
||||
import techreborn.tiles.TileMachineCasing;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockPlateCuttingMachine extends BlockMachineBase {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconFront;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconTop;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconBottom;
|
||||
|
||||
public BlockPlateCuttingMachine(Material material)
|
||||
{
|
||||
super(material);
|
||||
setBlockName("techreborn.platecuttingmachine");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister icon)
|
||||
{
|
||||
this.blockIcon = icon.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconFront = icon.registerIcon("techreborn:machine/plate_cutting_machine_front_off");
|
||||
this.iconTop = icon.registerIcon("techreborn:machine/machine_top");
|
||||
this.iconBottom = icon.registerIcon("techreborn:machine/machine_bottom");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int metadata)
|
||||
{
|
||||
return metadata == 0 && side == 3 ? this.iconFront
|
||||
: side == 1 ? this.iconTop :
|
||||
side == 0 ? this.iconBottom: (side == 0 ? this.iconTop
|
||||
: (side == metadata ? this.iconFront : this.blockIcon));
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -23,6 +23,7 @@ import techreborn.blocks.BlockMagicEnergyAbsorber;
|
|||
import techreborn.blocks.BlockMagicEnergyConverter;
|
||||
import techreborn.blocks.BlockMatterFabricator;
|
||||
import techreborn.blocks.BlockOre;
|
||||
import techreborn.blocks.BlockPlateCuttingMachine;
|
||||
import techreborn.blocks.BlockQuantumChest;
|
||||
import techreborn.blocks.BlockQuantumTank;
|
||||
import techreborn.blocks.BlockRollingMachine;
|
||||
|
@ -75,6 +76,7 @@ public class ModBlocks {
|
|||
public static Block AlloyFurnace;
|
||||
public static Block ChemicalReactor;
|
||||
public static Block lathe;
|
||||
public static Block platecuttingmachine;
|
||||
|
||||
public static Block ore;
|
||||
public static Block storage;
|
||||
|
@ -182,6 +184,9 @@ public class ModBlocks {
|
|||
|
||||
lathe = new BlockLathe(Material.rock);
|
||||
GameRegistry.registerBlock(lathe, "lathe");
|
||||
|
||||
platecuttingmachine = new BlockPlateCuttingMachine(Material.rock);
|
||||
GameRegistry.registerBlock(platecuttingmachine, "platecuttingmachine");
|
||||
|
||||
registerOreDict();
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 652 B |
Loading…
Add table
Reference in a new issue