Examples of FoodStats


Examples of net.minecraft.src.FoodStats

  public MinecraftTessellator getTessellator() {
    return tessellator;
  }

  public void render(HungerBar bar) {
    FoodStats foodStats = Minecraft.getMinecraft().thePlayer.getFoodStats();

    int foodLevel = foodStats.getFoodLevel();
    float foodPercent = foodLevel / 0.2f;
    float foodPercentPerIcon = 100f / bar.getNumOfIcons();

    if (bar.isVisible() && bar.getNumOfIcons() > 0) {
      int foodIcon = 16;
View Full Code Here

Examples of net.minecraft.util.FoodStats

        int left = width / 2 + 91;
        int top = height - right_height;
        right_height += 10;
        boolean unused = false;// Unused flag in vanilla, seems to be part of a 'fade out' mechanic

        FoodStats stats = mc.thePlayer.getFoodStats();
        int level = stats.getFoodLevel();
        int levelLast = stats.getPrevFoodLevel();

        for (int i = 0; i < 10; ++i)
        {
            int idx = i * 2 + 1;
            int x = left - i * 8 - 9;
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.