Renamed TileMeta to TileRotation
This commit is contained in:
parent
aacc73102d
commit
148715111f
34 changed files with 54 additions and 68 deletions
|
@ -60,7 +60,7 @@ public class BlockAlloyFurnace extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockAlloySmelter extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockAssemblingMachine extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockBlastFurnace extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ import net.minecraft.world.World;
|
|||
import techreborn.Core;
|
||||
import techreborn.blocks.BlockMachineBase;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.packets.PacketAesu;
|
||||
import techreborn.tiles.TileCentrifuge;
|
||||
|
||||
import java.util.Random;
|
||||
|
@ -68,7 +67,7 @@ public class BlockCentrifuge extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
if(side == 1){
|
||||
return this.iconTopOn;
|
||||
|
|
|
@ -59,7 +59,7 @@ public class BlockChargeBench extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockChemicalReactor extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
|||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import techreborn.blocks.BlockMachineBase;
|
||||
|
||||
import java.util.Random;
|
||||
|
@ -41,7 +40,7 @@ public class BlockDistillationTower extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
return metadata == 0 && side == 3 ? this.iconFront
|
||||
: side == 1 ? this.iconTop :
|
||||
side == 0 ? this.iconBottom : (side == 0 ? this.iconTop
|
||||
|
|
|
@ -68,7 +68,7 @@ public class BlockGrinder extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockImplosionCompressor extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ public class BlockIndustrialElectrolyzer extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockIndustrialSawmill extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockLathe extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public class BlockMatterFabricator extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconOn;
|
||||
} else {
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockPlateCuttingMachine extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ public class BlockRollingMachine extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
return metadata == 0 && side == 3 ? this.iconFront
|
||||
: side == 1 ? this.iconTop :
|
||||
side == 0 ? this.iconBottom : (side == 0 ? this.iconTop
|
||||
|
|
|
@ -8,7 +8,6 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
|||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import techreborn.blocks.BlockMachineBase;
|
||||
|
||||
import java.util.Random;
|
||||
|
@ -41,7 +40,7 @@ public class BlockVacuumFreezer extends BlockMachineBase {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
int metadata = getTileRotation(blockAccess, x, y, z);
|
||||
return metadata == 0 && side == 3 ? this.iconFront
|
||||
: side == 1 ? this.iconTop :
|
||||
side == 0 ? this.iconBottom : (side == 0 ? this.iconTop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue