@Override
 public void onRender() {
   if (blockPos == null) return;
   float red =
       (1F - (float) Math.sin((float) (System.currentTimeMillis() % 1000L) / 1000L * Math.PI * 2))
           / 2F;
   float green =
       (1F
               - (float)
                   Math.sin(
                       (float) ((System.currentTimeMillis() + 333L) % 1000L)
                           / 1000L
                           * Math.PI
                           * 2))
           / 2F;
   float blue =
       (1F
               - (float)
                   Math.sin(
                       (float) ((System.currentTimeMillis() + 666L) % 1000L)
                           / 1000L
                           * Math.PI
                           * 2))
           / 2F;
   Color color = new Color(red, green, blue);
   RenderUtils.tracerLine(blockPos.getX(), blockPos.getY(), blockPos.getZ(), color);
   RenderUtils.blockESPBox(blockPos);
 }
示例#2
0
 @Override
 public void onRender() {
   if (blockHitDelay == 0 && shouldRenderESP)
     if (!Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode
         && currentBlock.getPlayerRelativeBlockHardness(
                 Minecraft.getMinecraft().thePlayer, Minecraft.getMinecraft().theWorld, pos)
             < 1) RenderUtils.nukerBox(pos, currentDamage);
     else RenderUtils.nukerBox(pos, 1);
 }
 @Override
 public void onRender() {
   if (target == null) return;
   RenderUtils.entityESPBox(target, 3);
 }