use of com.bluepowermod.tile.tier1.TileAlloyFurnace in project BluePower by Qmunity.
the class BlockAlloyFurnace method getIcon.
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
TileAlloyFurnace te = (TileAlloyFurnace) world.getTileEntity(x, y, z);
ForgeDirection forgeSide = ForgeDirection.getOrientation(side);
if (forgeSide == ForgeDirection.UP)
return textureTop;
if (forgeSide == ForgeDirection.DOWN)
return textureBottom;
if (forgeSide == te.getFacingDirection())
return te.getIsActive() ? textureFrontOn : textureFrontOff;
return textureSide;
}
use of com.bluepowermod.tile.tier1.TileAlloyFurnace in project BluePower by Qmunity.
the class BlockAlloyFurnace method randomDisplayTick.
@Override
@SideOnly(Side.CLIENT)
public void randomDisplayTick(World world, int x, int y, int z, Random rnd) {
TileAlloyFurnace te = (TileAlloyFurnace) world.getTileEntity(x, y, z);
if (te.getIsActive()) {
int l = te.getFacingDirection().ordinal();
float f = x + 0.5F;
float f1 = y + 0.0F + rnd.nextFloat() * 6.0F / 16.0F;
float f2 = z + 0.5F;
float f3 = 0.52F;
float f4 = rnd.nextFloat() * 0.6F - 0.3F;
if (l == 4) {
world.spawnParticle("smoke", f - f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
world.spawnParticle("flame", f - f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
} else if (l == 5) {
world.spawnParticle("smoke", f + f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
world.spawnParticle("flame", f + f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
} else if (l == 2) {
world.spawnParticle("smoke", f + f4, f1, f2 - f3, 0.0D, 0.0D, 0.0D);
world.spawnParticle("flame", f + f4, f1, f2 - f3, 0.0D, 0.0D, 0.0D);
} else if (l == 3) {
world.spawnParticle("smoke", f + f4, f1, f2 + f3, 0.0D, 0.0D, 0.0D);
world.spawnParticle("flame", f + f4, f1, f2 + f3, 0.0D, 0.0D, 0.0D);
}
}
}
Aggregations