Search in sources :

Example 1 with RenderLaser

use of pneumaticCraft.client.render.RenderLaser in project PneumaticCraft by MineMaarten.

the class EntityDroneBase method renderExtras.

public void renderExtras(double x, double y, double z, float partialTicks) {
    ChunkPosition diggingPos = getDugBlock();
    if (diggingPos != null) {
        if (digLaser == null) {
            int color = 0xFF0000;
            digLaser = new RenderLaser(color);
        }
        digLaser.render(partialTicks, 0, getLaserOffsetY(), 0, diggingPos.chunkPosX + 0.5 - posX, diggingPos.chunkPosY + 0.45 - posY, diggingPos.chunkPosZ + 0.5 - posZ);
    }
}
Also used : ChunkPosition(net.minecraft.world.ChunkPosition) RenderLaser(pneumaticCraft.client.render.RenderLaser)

Aggregations

ChunkPosition (net.minecraft.world.ChunkPosition)1 RenderLaser (pneumaticCraft.client.render.RenderLaser)1