All Known Implementing Classes:
OfflineFitness, OnlineFitness

public interface Fitness
Fitness interface
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the amount of drinking points this player has
    int
    Get the amount of total fitness gained by climbing
    int
    Get the amount of total fitness gained by drinking
    int
    Get the amount of total fitness gained by flying
    int
    Get the amount of total fitness gained by eating
    int
    Get the amount of total fitness gained by health points.
    int
    Get the amount of total fitness gained by sprinting
    int
    Get the amount of total fitness gained by swimming
    int
    Get the amount of total fitness gained by walking
    int
    Get the amount of health points this player has
    int
    Get the amount of healthy food points this player has
    int
    Get the total fitness (fitness as displayed in scoreboard) for this player
    int
    Get the amount of unhealthy food points this player has
    void
    setDrinkingPoints​(int drinkingPoints)
    Set the amount of drinking points this player has.
    void
    setDrinkingPointsSilent​(int drinkingPoints)
    Set the amount of drinking points this player has without communicating it through message channels.
    void
    setFitGainedByClimbing​(int fitGainedByClimbing)
    Set the amount of fitness gained by climbing
    void
    setFitGainedByClimbingSilent​(int fitGainedByClimbing)
    Set the amount of fitness gained by climbing without communicating it through message channels.
    void
    setFitGainedByDrinking​(int fitGainedByDrinking)
    Set the amount of fitness gained by drinking
    void
    setFitGainedByDrinkingSilent​(int fitGainedByDrinking)
    Set the amount of fitness gained by drinking without communicating it through message channels.
    void
    setFitGainedByFlying​(int fitGainedByFlying)
    Set the amount of fitness gained by flying
    void
    setFitGainedByFlyingSilent​(int fitGainedByFlying)
    Set the amount of fitness gained by flying without communicating it through message channels.
    void
    setFitGainedByFood​(int fitGainedByFood)
    Set the amount of fitness gained by eating
    void
    setFitGainedByFoodSilent​(int fitGainedByFood)
    Set the amount of fitness gained by eating without communicating it through message channels.
    void
    setFitGainedByHealth​(int fitGainedByHealth)
    Set the amount of fitness gained by health points
    void
    setFitGainedByHealthSilent​(int fitGainedByHealth)
    Set the amount of fitness gained by health points without communicating it through message channels.
    void
    setFitGainedBySprinting​(int fitGainedBySprinting)
    Set the amount of fitness gained by sprinting
    void
    setFitGainedBySprintingSilent​(int fitGainedBySprinting)
    Set the amount of fitness gained by sprinting without communicating it through message channels.
    void
    setFitGainedBySwimming​(int fitGainedBySwimming)
    Set the amount of fitness gained by swimming
    void
    setFitGainedBySwimmingSilent​(int fitGainedBySwimming)
    Set the amount of fitness gained by swimming without communicating it through message channels.
    void
    setFitGainedByWalking​(int fitGainedByWalking)
    Set the amount of fitness gained by walking
    void
    setFitGainedByWalkingSilent​(int fitGainedByWalking)
    Set the amount of fitness gained by walking without communicating it through message channels.
    void
    setHealthPoints​(int healthPoints)
    Set the amount of health points this player has.
    void
    setHealthPointsSilent​(int healthPoints)
    Set the amount of health points this player has without communicating it through message channels.
    void
    setHealthyFoodPoints​(int healthyFood)
    Set the amount of healthy food points this player has.
    void
    setHealthyFoodPointsSilent​(int healthyFood)
    Set the amount of healthy food points this player has without communicating it through message channels.
    void
    setTotalFitness​(int total)
    Set the total fitness for this player
    void
    setTotalFitnessSilent​(int total)
    Set the total fitness for this player without communicating it through message channels.
    void
    setUnhealthyFoodPoints​(int unhealthyFood)
    Set the amount of unhealthy food points this player has.
    void
    setUnhealthyFoodPointsSilent​(int unhealthyFood)
    Set the amount of unhealthy food points this player has without communicating it through message channels.
  • Method Details

    • getTotalFitness

      int getTotalFitness()
      Get the total fitness (fitness as displayed in scoreboard) for this player
      Returns:
      total fitness
    • setTotalFitness

      void setTotalFitness(int total)
      Set the total fitness for this player
      Parameters:
      total - new total fitness
    • setTotalFitnessSilent

      void setTotalFitnessSilent(int total)
      Set the total fitness for this player without communicating it through message channels. Please use setTotalFitness(int) instead.
      Parameters:
      total - new total fitness
    • getDrinkingPoints

      int getDrinkingPoints()
      Get the amount of drinking points this player has
      Returns:
      drinking points
    • setDrinkingPoints

      void setDrinkingPoints(int drinkingPoints)
      Set the amount of drinking points this player has. Once a player has 1000 drinking points, he will gain one fitness point.
      Parameters:
      drinkingPoints - drinking points
    • setDrinkingPointsSilent

      void setDrinkingPointsSilent(int drinkingPoints)
      Set the amount of drinking points this player has without communicating it through message channels. Please use setDrinkingPoints(int) instead.
      Parameters:
      drinkingPoints - drinking points
    • getFitGainedByDrinking

      int getFitGainedByDrinking()
      Get the amount of total fitness gained by drinking
      Returns:
      fitness gained by drinking
    • setFitGainedByDrinking

      void setFitGainedByDrinking(int fitGainedByDrinking)
      Set the amount of fitness gained by drinking
      Parameters:
      fitGainedByDrinking - fitness gained by drinking
    • setFitGainedByDrinkingSilent

      void setFitGainedByDrinkingSilent(int fitGainedByDrinking)
      Set the amount of fitness gained by drinking without communicating it through message channels. Please use setFitGainedByDrinking(int) instead.
      Parameters:
      fitGainedByDrinking - fitness gained by drinking
    • getFitGainedByWalking

      int getFitGainedByWalking()
      Get the amount of total fitness gained by walking
      Returns:
      fitness gained by walking
    • setFitGainedByWalking

      void setFitGainedByWalking(int fitGainedByWalking)
      Set the amount of fitness gained by walking
      Parameters:
      fitGainedByWalking - fitness gained by walking
    • setFitGainedByWalkingSilent

      void setFitGainedByWalkingSilent(int fitGainedByWalking)
      Set the amount of fitness gained by walking without communicating it through message channels. Please use setFitGainedByWalking(int) instead.
      Parameters:
      fitGainedByWalking - fitness gained by walking
    • getFitGainedBySprinting

      int getFitGainedBySprinting()
      Get the amount of total fitness gained by sprinting
      Returns:
      fitness gained by sprinting
    • setFitGainedBySprinting

      void setFitGainedBySprinting(int fitGainedBySprinting)
      Set the amount of fitness gained by sprinting
      Parameters:
      fitGainedBySprinting - fitness gained by sprinting
    • setFitGainedBySprintingSilent

      void setFitGainedBySprintingSilent(int fitGainedBySprinting)
      Set the amount of fitness gained by sprinting without communicating it through message channels. Please use setFitGainedBySprinting(int) instead.
      Parameters:
      fitGainedBySprinting - fitness gained by sprinting
    • getFitGainedByClimbing

      int getFitGainedByClimbing()
      Get the amount of total fitness gained by climbing
      Returns:
      fitness gained by climbing
    • setFitGainedByClimbing

      void setFitGainedByClimbing(int fitGainedByClimbing)
      Set the amount of fitness gained by climbing
      Parameters:
      fitGainedByClimbing - fitness gained by climbing
    • setFitGainedByClimbingSilent

      void setFitGainedByClimbingSilent(int fitGainedByClimbing)
      Set the amount of fitness gained by climbing without communicating it through message channels. Please use setFitGainedByClimbing(int) instead.
      Parameters:
      fitGainedByClimbing - fitness gained by climbing
    • getFitGainedBySwimming

      int getFitGainedBySwimming()
      Get the amount of total fitness gained by swimming
      Returns:
      fitness gained by swimming
    • setFitGainedBySwimming

      void setFitGainedBySwimming(int fitGainedBySwimming)
      Set the amount of fitness gained by swimming
      Parameters:
      fitGainedBySwimming - fitness gained by swimming
    • setFitGainedBySwimmingSilent

      void setFitGainedBySwimmingSilent(int fitGainedBySwimming)
      Set the amount of fitness gained by swimming without communicating it through message channels. Please use setFitGainedBySwimming(int) instead.
      Parameters:
      fitGainedBySwimming - fitness gained by swimming
    • getFitGainedByFlying

      int getFitGainedByFlying()
      Get the amount of total fitness gained by flying
      Returns:
      fitness gained by flying
    • setFitGainedByFlying

      void setFitGainedByFlying(int fitGainedByFlying)
      Set the amount of fitness gained by flying
      Parameters:
      fitGainedByFlying - fitness gained by flying
    • setFitGainedByFlyingSilent

      void setFitGainedByFlyingSilent(int fitGainedByFlying)
      Set the amount of fitness gained by flying without communicating it through message channels. Please use setFitGainedByFlying(int) instead.
      Parameters:
      fitGainedByFlying - fitness gained by flying
    • getHealthPoints

      int getHealthPoints()
      Get the amount of health points this player has
      Returns:
      health points
    • setHealthPoints

      void setHealthPoints(int healthPoints)
      Set the amount of health points this player has.
      Parameters:
      healthPoints - health points
    • setHealthPointsSilent

      void setHealthPointsSilent(int healthPoints)
      Set the amount of health points this player has without communicating it through message channels. Please use setHealthPoints(int) instead.
      Parameters:
      healthPoints - health points
    • getFitGainedByHealth

      int getFitGainedByHealth()
      Get the amount of total fitness gained by health points. You can get health points by having at least 9/10 hearts. You can lose them by having less than 5.
      Returns:
      fitness gained by health points
    • setFitGainedByHealth

      void setFitGainedByHealth(int fitGainedByHealth)
      Set the amount of fitness gained by health points
      Parameters:
      fitGainedByHealth - fitness gained by health points
    • setFitGainedByHealthSilent

      void setFitGainedByHealthSilent(int fitGainedByHealth)
      Set the amount of fitness gained by health points without communicating it through message channels. Please use setFitGainedByHealth(int) instead.
      Parameters:
      fitGainedByHealth - fitness gained by health points
    • getHealthyFoodPoints

      int getHealthyFoodPoints()
      Get the amount of healthy food points this player has
      Returns:
      healthy food points
    • setHealthyFoodPoints

      void setHealthyFoodPoints(int healthyFood)
      Set the amount of healthy food points this player has.
      Parameters:
      healthyFood - healthy food points
    • setHealthyFoodPointsSilent

      void setHealthyFoodPointsSilent(int healthyFood)
      Set the amount of healthy food points this player has without communicating it through message channels. Please use setHealthyFoodPoints(int)
      Parameters:
      healthyFood - healthy food points
    • getUnhealthyFoodPoints

      int getUnhealthyFoodPoints()
      Get the amount of unhealthy food points this player has
      Returns:
      unhealthy food points
    • setUnhealthyFoodPoints

      void setUnhealthyFoodPoints(int unhealthyFood)
      Set the amount of unhealthy food points this player has.
      Parameters:
      unhealthyFood - unhealthy food points
    • setUnhealthyFoodPointsSilent

      void setUnhealthyFoodPointsSilent(int unhealthyFood)
      Set the amount of unhealthy food points this player has without communicating it through message channels. Please use setUnhealthyFoodPoints(int)
      Parameters:
      unhealthyFood - unhealthy food points
    • getFitGainedByFood

      int getFitGainedByFood()
      Get the amount of total fitness gained by eating
      Returns:
      fitness gained by eating
    • setFitGainedByFood

      void setFitGainedByFood(int fitGainedByFood)
      Set the amount of fitness gained by eating
      Parameters:
      fitGainedByFood - fitness gained by health eating
    • setFitGainedByFoodSilent

      void setFitGainedByFoodSilent(int fitGainedByFood)
      Set the amount of fitness gained by eating without communicating it through message channels. Please use setFitGainedByHealth(int)
      Parameters:
      fitGainedByFood - fitness gained by health eating