@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float tick)
{
if (tileEntity instanceof TileEntityAlchemicalChest)
{
TileEntityAlchemicalChest tileEntityAlchemicalChest = (TileEntityAlchemicalChest) tileEntity;
ForgeDirection direction = null;
if (tileEntityAlchemicalChest.getWorldObj() != null)
{
direction = tileEntityAlchemicalChest.getOrientation();
}
if (tileEntityAlchemicalChest.getState() == 0)
{
this.bindTexture(Textures.Model.ALCHEMICAL_CHEST_SMALL);
}
else if (tileEntityAlchemicalChest.getState() == 1)
{
this.bindTexture(Textures.Model.ALCHEMICAL_CHEST_MEDIUM);
}
else if (tileEntityAlchemicalChest.getState() == 2)
{
this.bindTexture(Textures.Model.ALCHEMICAL_CHEST_LARGE);
}
GL11.glPushMatrix();