Added textures
Added Dragoneggsiphoner
|
@ -55,11 +55,9 @@ public class BlockCentrifuge extends BlockMachineBase {
|
|||
public void registerBlockIcons(IIconRegister icon)
|
||||
{
|
||||
this.blockIcon = icon.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconFront = icon
|
||||
.registerIcon("techreborn:machine/centrifuge_front_off");
|
||||
this.iconTop = icon
|
||||
.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconBottom = icon.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconFront = icon.registerIcon("techreborn:machine/industrial_centrifuge_side_off");
|
||||
this.iconTop = icon.registerIcon("techreborn:machine/industrial_centrifuge_top_off");
|
||||
this.iconBottom = icon.registerIcon("techreborn:machine/industrial_centrifuge_bottom");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
|
61
src/main/java/techreborn/blocks/BlockDragonEggSiphoner.java
Normal file
|
@ -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 BlockDragonEggSiphoner extends BlockMachineBase {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconFront;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconTop;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconBottom;
|
||||
|
||||
public BlockDragonEggSiphoner(Material material)
|
||||
{
|
||||
super(material);
|
||||
setBlockName("techreborn.dragoneggsiphoner");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister icon)
|
||||
{
|
||||
this.blockIcon = icon.registerIcon("techreborn:machine/dragon_egg_energy_siphon_side_off");
|
||||
this.iconFront = icon.registerIcon("techreborn:machine/dragon_egg_energy_siphon_side_off");
|
||||
this.iconTop = icon.registerIcon("techreborn:machine/dragon_egg_energy_siphon_top");
|
||||
this.iconBottom = icon.registerIcon("techreborn:machine/dragon_egg_energy_siphon_side_off");
|
||||
}
|
||||
|
||||
@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));
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -61,9 +61,8 @@ public class BlockThermalGenerator extends BlockMachineBase {
|
|||
{
|
||||
this.blockIcon = icon.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconFront = icon.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconTop = icon
|
||||
.registerIcon("techreborn:machine/ThermalGenerator_top");
|
||||
this.iconBottom = icon.registerIcon("techreborn:machine/machine_side");
|
||||
this.iconTop = icon.registerIcon("techreborn:machine/thermal_generator_top_off");
|
||||
this.iconBottom = icon.registerIcon("techreborn:machine/thermal_generator_side_off");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
|
|
@ -8,6 +8,7 @@ import techreborn.blocks.BlockAlloySmelter;
|
|||
import techreborn.blocks.BlockBlastFurnace;
|
||||
import techreborn.blocks.BlockCentrifuge;
|
||||
import techreborn.blocks.BlockChunkLoader;
|
||||
import techreborn.blocks.BlockDragonEggSiphoner;
|
||||
import techreborn.blocks.BlockGrinder;
|
||||
import techreborn.blocks.BlockHighlyAdvancedMachine;
|
||||
import techreborn.blocks.BlockImplosionCompressor;
|
||||
|
@ -55,6 +56,7 @@ public class ModBlocks {
|
|||
public static Block MatterFabricator;
|
||||
public static Block ChunkLoader;
|
||||
public static Block HighAdvancedMachineBlock;
|
||||
public static Block Dragoneggenergysiphoner;
|
||||
|
||||
public static Block ore;
|
||||
public static Block storage;
|
||||
|
@ -132,6 +134,9 @@ public class ModBlocks {
|
|||
|
||||
HighAdvancedMachineBlock = new BlockHighlyAdvancedMachine(Material.rock);
|
||||
GameRegistry.registerBlock(HighAdvancedMachineBlock, "highlyadvancedmachine");
|
||||
|
||||
Dragoneggenergysiphoner = new BlockDragonEggSiphoner(Material.rock);
|
||||
GameRegistry.registerBlock(Dragoneggenergysiphoner, "dragoneggenergsiphon");
|
||||
|
||||
registerOreDict();
|
||||
}
|
||||
|
|
After Width: | Height: | Size: 822 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 601 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 412 B |
After Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 609 B |
After Width: | Height: | Size: 611 B |
After Width: | Height: | Size: 728 B |
After Width: | Height: | Size: 745 B |
After Width: | Height: | Size: 596 B |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 731 B |
After Width: | Height: | Size: 671 B |
After Width: | Height: | Size: 771 B |
After Width: | Height: | Size: 768 B |
After Width: | Height: | Size: 626 B |
After Width: | Height: | Size: 752 B |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 696 B |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 660 B |
After Width: | Height: | Size: 645 B |
After Width: | Height: | Size: 687 B |
After Width: | Height: | Size: 725 B |
After Width: | Height: | Size: 683 B |
After Width: | Height: | Size: 779 B |
After Width: | Height: | Size: 671 B |
After Width: | Height: | Size: 720 B |
After Width: | Height: | Size: 686 B |
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 632 B |
After Width: | Height: | Size: 822 B |
After Width: | Height: | Size: 659 B |
After Width: | Height: | Size: 643 B |
After Width: | Height: | Size: 584 B |
After Width: | Height: | Size: 822 B |
After Width: | Height: | Size: 594 B |
After Width: | Height: | Size: 676 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 683 B |