Package net.minecraft.src

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

TOP

Related Classes of net.minecraft.src.FoodStats

Copyright © 2018 www.massapicom. 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.