Package net.minecraft.profiler

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


  }

  @SubscribeEvent
  public void onRenderWorldLast(RenderWorldLastEvent event) {
    Profiler profiler = Minecraft.getMinecraft().mcProfiler;
    profiler.startSection("botania-particles");
    ParticleRenderDispatcher.dispatch();
    profiler.startSection("lightning");

    float frame = event.partialTicks;
    Entity entity = Minecraft.getMinecraft().thePlayer;
View Full Code Here


  @SubscribeEvent
  public void onRenderWorldLast(RenderWorldLastEvent event) {
    Profiler profiler = Minecraft.getMinecraft().mcProfiler;
    profiler.startSection("botania-particles");
    ParticleRenderDispatcher.dispatch();
    profiler.startSection("lightning");

    float frame = event.partialTicks;
    Entity entity = Minecraft.getMinecraft().thePlayer;
    TextureManager render = Minecraft.getMinecraft().renderEngine;
View Full Code Here

  public void onDrawScreen(RenderGameOverlayEvent.Post event) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    if(event.type == ElementType.ALL) {
      profiler.startSection("botania-hud");
      MovingObjectPosition pos = mc.objectMouseOver;
      if(pos != null) {
        Block block = mc.theWorld.getBlock(pos.blockX, pos.blockY, pos.blockZ);
        TileEntity tile = mc.theWorld.getTileEntity(pos.blockX, pos.blockY, pos.blockZ);
        ItemStack stack = mc.thePlayer.getCurrentEquippedItem();
View Full Code Here

        if(stack != null) {
          if(pos != null && stack.getItem() == ModItems.twigWand) {
            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)
View Full Code Here

          else if(tile != null && tile instanceof TilePool)
            renderPoolRecipeHUD(event.resolution, (TilePool) tile, stack);
        }
      }

      profiler.startSection("manaBar");
      EntityPlayer player = Minecraft.getMinecraft().thePlayer;
      int totalMana = 0;
      int totalMaxMana = 0;
      boolean anyRequest = false;
      boolean creative = false;
View Full Code Here

  private void renderWandModeDisplay(ScaledResolution res) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    profiler.startSection("wandMode");
    int ticks = ReflectionHelper.getPrivateValue(GuiIngame.class, mc.ingameGUI, LibObfuscation.REMAINING_HIGHLIGHT_TICKS);
    ticks -= 15;
    if(ticks > 0) {
      int alpha = Math.min(255, (int) (ticks * 256.0F / 10.0F));
      int color = 0x00CC00 + (alpha << 24);
View Full Code Here

  private void renderPoolRecipeHUD(ScaledResolution res, TilePool tile, ItemStack stack) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    profiler.startSection("poolRecipe");
    for(RecipeManaInfusion recipe : BotaniaAPI.manaInfusionRecipes) {
      if(recipe.matches(stack)) {
        if((!recipe.isAlchemy() || tile.alchemy) && (!recipe.isConjuration() || tile.conjuration)) {
          int x = res.getScaledWidth() / 2 - 11;
          int y = res.getScaledHeight() / 2 + 10;
View Full Code Here

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

    profiler.startSection("lexicon");
    FontRenderer font = mc.fontRenderer;
    boolean draw = false;
    String drawStr = "";

    GL11.glEnable(GL11.GL_BLEND);
View Full Code Here

        draw = true;
      }
    }

    if(!draw && pos.entityHit == null) {
      profiler.startSection("wikiLookup");
      IWikiProvider provider = WikiHooks.getWikiFor(block);
      String url = provider.getWikiURL(mc.theWorld, pos);
      if(url != null && !url.isEmpty()) {
        String name = provider.getBlockName(mc.theWorld, pos);
        String wikiName = provider.getWikiName(mc.theWorld, pos);
View Full Code Here

    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
    GL11.glAlphaFunc(GL11.GL_GREATER, 0.003921569F);
    if(isLightingEnabled)
      GL11.glDisable(GL11.GL_LIGHTING);

    profiler.startSection("sparkle");
    FXSparkle.dispatchQueuedRenders(tessellator);
    profiler.endStartSection("wisp");
    FXWisp.dispatchQueuedRenders(tessellator);
    profiler.endSection();
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.