Package powercrystals.minefactoryreloaded.render.tileentity

Source Code of powercrystals.minefactoryreloaded.render.tileentity.LaserDrillRenderer

package powercrystals.minefactoryreloaded.render.tileentity;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
import powercrystals.minefactoryreloaded.tile.machine.TileEntityLaserDrill;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class LaserDrillRenderer extends TileEntitySpecialRenderer
{
  @Override
  public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float partialTicks)
  {
    TileEntityLaserDrill laserDrill = (TileEntityLaserDrill)tileEntity;
    if(laserDrill.shouldDrawBeam())
    {
      this.bindTextureByName("/misc/beam.png");
      LaserRendererBase.renderLaser(laserDrill, x, y, z, laserDrill.getBeamHeight(), ForgeDirection.DOWN, partialTicks);
    }
  }
}
TOP

Related Classes of powercrystals.minefactoryreloaded.render.tileentity.LaserDrillRenderer

TOP
Copyright © 2018 www.massapi.com. 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.