Advertisement
Guest User

Untitled

a guest
Nov 24th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1. GlStateManager.pushMatrix();
  2.         {
  3.             worldRenderer.func_181668_a(GL11.GL_LINES, DefaultVertexFormats.field_181706_f);
  4.             synchronized (TileEntityRedstoneInterface.interfaces)
  5.             {
  6.                 for (TileEntityRedstoneInterface redstoneInterface : TileEntityRedstoneInterface.interfaces)
  7.                 {
  8.                     if (!redstoneInterface.isInvalid())
  9.                     {
  10.                         BlockPos position = redstoneInterface.getPos();
  11.                         BlockPos target = redstoneInterface.getTarget();
  12.  
  13.                         if (position.distanceSq(player.getPosition()) < 225)
  14.                         {
  15.                             if (target != null)
  16.                             {
  17.                                 if (redstoneInterface.getWorld().isRemote)
  18.                                 {
  19.                                     worldRenderer.putPosition(target.getX() + 0.5 - playerX, target.getY() + 0.5 - playerY, target.getZ() + 0.5 - playerZ);
  20.                                     worldRenderer.putColorRGB_F(1F / 255F * 255, 0, 0, 255);
  21.                                     worldRenderer.putPosition(position.getX() + 0.5 - playerX, position.getY() + 0.5 - playerY, position.getZ() + 0.5 - playerZ);
  22.                                     worldRenderer.putColorRGB_F(1F / 255F * 255, 0, 0, 255);
  23.                                 }
  24.                             }
  25.                         }
  26.                     }
  27.                 }
  28.             }
  29.             tessellator.draw();
  30.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement