double endZ = targetEntity.posZ;
prevRotationYaw = rotationYaw;
prevRotationPitch = rotationPitch;
if(ring == null) {
ring = new RenderRing(posX, posY, posZ, endX, endY, endZ, color);
} else {
if(oldRing == null) {
oldRing = new RenderRing(ring.startX, ring.startY, ring.startZ, ring.endX, ring.endY, ring.endZ, color);
} else {
oldRing.endX = ring.endX;
oldRing.endY = ring.endY;
oldRing.endZ = ring.endZ;
}