Added highlyadvancedmachineblock

some texture stuffs
This commit is contained in:
Gig 2015-05-03 18:00:09 +01:00
parent e2c1f1307b
commit ab41f1b866
10 changed files with 55 additions and 4 deletions

View file

@ -0,0 +1,46 @@
package techreborn.blocks;
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.util.IIcon;
public class BlockHighlyAdvancedMachine extends BlockMachineBase{
@SideOnly(Side.CLIENT)
private IIcon iconFront;
@SideOnly(Side.CLIENT)
private IIcon iconTop;
@SideOnly(Side.CLIENT)
private IIcon iconBottom;
public BlockHighlyAdvancedMachine(Material material)
{
super(material);
setBlockName("techreboen.highlyadvancedmachine");
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister icon)
{
this.blockIcon = icon.registerIcon("techreborn:machine/highlyadvancedmachine");
this.iconFront = icon.registerIcon("techreborn:machine/highlyadvancedmachine");
this.iconTop = icon.registerIcon("techreborn:machine/highlyadvancedmachine");
this.iconBottom = icon.registerIcon("techreborn:machine/highlyadvancedmachine");
}
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int metadata)
{
return metadata == 0 && side == 3 ? this.iconFront
: side == 1 ? this.iconTop : (side == 0 ? this.iconTop
: (side == metadata ? this.iconFront : this.blockIcon));
}
}

View file

@ -55,10 +55,10 @@ public class BlockMatterFabricator extends BlockMachineBase{
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister icon)
{
this.blockIcon = icon.registerIcon("techreborn:machine/machine_side");
this.iconFront = icon.registerIcon("techreborn:machine/matterfabricator_front_off");
this.iconTop = icon.registerIcon("techreborn:machine/machine_side");
this.iconBottom = icon.registerIcon("techreborn:machine/machine_side");
this.blockIcon = icon.registerIcon("techreborn:machine/matterfab_off");
this.iconFront = icon.registerIcon("techreborn:machine/matterfab_off");
this.iconTop = icon.registerIcon("techreborn:machine/matterfab_off");
this.iconBottom = icon.registerIcon("techreborn:machine/matterfab_off");
}
@SideOnly(Side.CLIENT)

View file

@ -9,6 +9,7 @@ import techreborn.blocks.BlockBlastFurnace;
import techreborn.blocks.BlockCentrifuge;
import techreborn.blocks.BlockChunkLoader;
import techreborn.blocks.BlockGrinder;
import techreborn.blocks.BlockHighlyAdvancedMachine;
import techreborn.blocks.BlockImplosionCompressor;
import techreborn.blocks.BlockMachineCasing;
import techreborn.blocks.BlockMatterFabricator;
@ -53,6 +54,7 @@ public class ModBlocks {
public static Block ImplosionCompressor;
public static Block MatterFabricator;
public static Block ChunkLoader;
public static Block HighAdvancedMachineBlock;
public static Block ore;
public static Block storage;
@ -127,6 +129,9 @@ public class ModBlocks {
storage = new BlockStorage(Material.rock);
GameRegistry.registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
LogHelper.info("TechReborns Blocks Loaded");
HighAdvancedMachineBlock = new BlockHighlyAdvancedMachine(Material.rock);
GameRegistry.registerBlock(HighAdvancedMachineBlock, "highlyadvancedmachine");
registerOreDict();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B