public static final ModelForceManipulator MODEL = new ModelForceManipulator();
@Override
public void renderTileEntityAt(TileEntity t, double x, double y, double z, float f)
{
TileMFFS tileEntity = (TileMFFS) t;
/**
* Render Model
*/
if (tileEntity.isActive())
{
FMLClientHandler.instance().getClient().renderEngine.bindTexture(TEXTURE_ON);
}
else
{
FMLClientHandler.instance().getClient().renderEngine.bindTexture(TEXTURE_OFF);
}
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5, y + 1.5, z + 0.5);
GL11.glRotatef(180F, 0.0F, 0.0F, 1F);
// Rotate the model
switch (tileEntity.getDirection())
{
case UP:
GL11.glRotatef(-90, 1f, 0f, 0);
GL11.glTranslated(0, -1, 1);
break;