use of com.bluepowermod.tile.tier3.TileCPU in project BluePower by Qmunity.
the class BlockCPU method getIcon.
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
TileCPU tile = (TileCPU) world.getTileEntity(x, y, z);
ForgeDirection dir = tile.getFacingDirection();
if (dir.ordinal() == side) {
return frontTexture;
} else if (dir.getOpposite().ordinal() == side) {
return backTexture;
} else if (ForgeDirection.UP.ordinal() == side) {
return topTexture;
} else if (ForgeDirection.DOWN.ordinal() == side) {
return bottomTexture;
} else {
return sideTexture;
}
}
Aggregations