Package vazkii.botania.common.block.tile

Examples of vazkii.botania.common.block.tile.TileTerraPlate


public class RenderTileTerraPlate extends TileEntitySpecialRenderer {

  @Override
  public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) {
    TileTerraPlate plate = (TileTerraPlate) tileentity;

    float max = (float) TileTerraPlate.MAX_MANA / 10F;
    float alphaMod = (float) Math.min(max, plate.getCurrentMana()) / max;
    GL11.glPushMatrix();
    GL11.glTranslated(d0, d1, d2);

    GL11.glRotated(90F, 1F, 0F, 0F);
    GL11.glTranslatef(0F, 0F, -3F / 16F - 0.001F);
View Full Code Here


    return icons[Math.min(2, par1)];
  }

  @Override
  public TileEntity createNewTileEntity(World world, int meta) {
    return new TileTerraPlate();
  }
View Full Code Here

TOP

Related Classes of vazkii.botania.common.block.tile.TileTerraPlate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.