use of com.bluepowermod.tile.tier3.TileMonitor in project BluePower by Qmunity.
the class BlockMonitor method getIcon.
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
TileMonitor tile = (TileMonitor) 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