Package net.minecraft.profiler

Examples of net.minecraft.profiler.Profiler.endSection()


    GL11.glDisable(GL11.GL_BLEND);
    GL11.glDepthMask(true);

    GL11.glTranslated(interpPosX, interpPosY, interpPosZ);
    profiler.endSection();
    profiler.endSection();

  }

  public static void spawnLightningBolt(World world, Vector3 vectorStart, Vector3 vectorEnd, float ticksPerMeter, long seed, int colorOuter, int colorInner) {
View Full Code Here


    GL11.glDisable(GL11.GL_BLEND);
    GL11.glDepthMask(true);

    GL11.glTranslated(interpPosX, interpPosY, interpPosZ);
    profiler.endSection();
    profiler.endSection();

  }

  public static void spawnLightningBolt(World world, Vector3 vectorStart, Vector3 vectorEnd, float ticksPerMeter, long seed, int colorOuter, int colorInner) {
    LightningBolt bolt = new LightningBolt(world, vectorStart, vectorEnd, ticksPerMeter, seed, colorOuter, colorInner);
View Full Code Here

            renderWandModeDisplay(event.resolution);

            if(block instanceof IWandHUD) {
              profiler.startSection("wandItem");
              ((IWandHUD) block).renderHUD(mc, event.resolution, mc.theWorld, pos.blockX, pos.blockY, pos.blockZ);
              profiler.endSection();
            }
          }
          else if(pos != null && stack.getItem() instanceof ILexicon)
            drawLexiconHUD(mc.thePlayer.getCurrentEquippedItem(), block, pos, event.resolution);
          else if(tile != null && tile instanceof TilePool)
View Full Code Here

      if(anyRequest)
        renderManaInvBar(event.resolution, creative, totalMana, totalMaxMana);

      profiler.endStartSection("bossBar");
      BossBarHandler.render(event.resolution);
      profiler.endSection();
      profiler.endSection();
    }
  }

  private void renderWandModeDisplay(ScaledResolution res) {
View Full Code Here

        renderManaInvBar(event.resolution, creative, totalMana, totalMaxMana);

      profiler.endStartSection("bossBar");
      BossBarHandler.render(event.resolution);
      profiler.endSection();
      profiler.endSection();
    }
  }

  private void renderWandModeDisplay(ScaledResolution res) {
    Minecraft mc = Minecraft.getMinecraft();
View Full Code Here

      GL11.glEnable(GL11.GL_BLEND);
      GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
      mc.fontRenderer.drawStringWithShadow(disp, x, y, color);
      GL11.glDisable(GL11.GL_BLEND);
    }
    profiler.endSection();
  }

  private void renderManaInvBar(ScaledResolution res, boolean hasCreative, int totalMana, int totalMaxMana) {
    Minecraft mc = Minecraft.getMinecraft();
    int width = 182;
View Full Code Here

          break;
        }
      }
    }
    profiler.endSection();
  }

  private void drawLexiconHUD(ItemStack stack, Block block, MovingObjectPosition pos, ScaledResolution res) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;
View Full Code Here

        String name = provider.getBlockName(mc.theWorld, pos);
        String wikiName = provider.getWikiName(mc.theWorld, pos);
        drawStr = name + " @ " + EnumChatFormatting.AQUA + wikiName;
        draw = true;
      }
      profiler.endSection();
    }

    if(draw) {
      if(!mc.thePlayer.isSneaking()) {
        drawStr = "?";
View Full Code Here

      font.drawStringWithShadow(drawStr, sx + 10, sy + 8, 0xFFFFFFFF);
    }

    GL11.glDisable(GL11.GL_BLEND);
    GL11.glColor4f(1F, 1F, 1F, 1F);
    profiler.endSection();
  }

  public static void drawSimpleManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res) {
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
View Full Code Here

    profiler.startSection("sparkle");
    FXSparkle.dispatchQueuedRenders(tessellator);
    profiler.endStartSection("wisp");
    FXWisp.dispatchQueuedRenders(tessellator);
    profiler.endSection();

    if(isLightingEnabled)
      GL11.glEnable(GL11.GL_LIGHTING);
    GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);
    GL11.glDisable(GL11.GL_BLEND);
View Full Code Here

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.