Package net.minecraft.profiler

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


      this.randomYawVelocity = 0.0F;
    } else if (this.isClientWorld()) {
      if (this.isAIEnabled()) {
        theProfiler.startSection("newAi");
        this.updateAITasks();
        theProfiler.endSection();
      } else {
        theProfiler.startSection("oldAi");
        this.updateEntityActionState();
        theProfiler.endSection();
        this.rotationYawHead = this.rotationYaw;
View Full Code Here


        this.updateAITasks();
        theProfiler.endSection();
      } else {
        theProfiler.startSection("oldAi");
        this.updateEntityActionState();
        theProfiler.endSection();
        this.rotationYawHead = this.rotationYaw;
      }
    }

    theProfiler.endSection();
View Full Code Here

        theProfiler.endSection();
        this.rotationYawHead = this.rotationYaw;
      }
    }

    theProfiler.endSection();
    theProfiler.startSection("jump");

    if (this.isJumping) {
      if (!this.isInWater() && !this.handleLavaMovement()) {
        if (this.onGround && this.jumpTicks == 0) {
View Full Code Here

      }
    } else {
      this.jumpTicks = 0;
    }

    theProfiler.endSection();
    theProfiler.startSection("travel");
    this.moveStrafing *= 0.98F;
    this.moveForward *= 0.98F;
    this.randomYawVelocity *= 0.9F;
    this.moveEntityWithHeading(this.moveStrafing, this.moveForward);
View Full Code Here

    theProfiler.startSection("travel");
    this.moveStrafing *= 0.98F;
    this.moveForward *= 0.98F;
    this.randomYawVelocity *= 0.9F;
    this.moveEntityWithHeading(this.moveStrafing, this.moveForward);
    theProfiler.endSection();
    theProfiler.startSection("push");

    if (!worldObj.isRemote) {
      this.collideWithNearbyEntities();
    }
View Full Code Here

    if (!worldObj.isRemote) {
      this.collideWithNearbyEntities();
    }

    theProfiler.endSection();
  }
}
View Full Code Here

    if (loadFactor < 0.2f || loadFactor > 1f) {
      loadFactor = 0.2f;
    }
    float entityMultiplier = worldServer.playerEntities.size() * TickThreading.instance.mobSpawningMultiplier * loadFactor;
    if (entityMultiplier == 0) {
      profiler.endSection();
      return 0;
    }
    boolean dayTime = worldServer.isDaytime();
    float mobMultiplier = entityMultiplier * (dayTime ? 1 : 2);
    Map<EnumCreatureType, Integer> requiredSpawns = (Map<EnumCreatureType, Integer>) new EnumMap(EnumCreatureType.class);
View Full Code Here

      int count = (int) ((creatureType.getPeacefulCreature() ? entityMultiplier : mobMultiplier) * creatureType.getMaxNumberOfCreature());
      if (!(creatureType.getPeacefulCreature() && !peaceful || creatureType.getAnimal() && !animal || !creatureType.getPeacefulCreature() && !hostile) && count > worldServer.countEntities(creatureType.getCreatureClass())) {
        requiredSpawns.put(creatureType, count);
      }
    }
    profiler.endSection();

    if (requiredSpawns.isEmpty()) {
      return 0;
    }

View Full Code Here

      }
      if (attemptedSpawnedMobs >= 24) {
        break;
      }
    }
    profiler.endSection();
    return attemptedSpawnedMobs;
  }
}
View Full Code Here

          }
        }
      }
    }

    theProfiler.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.