Interface Fitness
- All Known Implementing Classes:
OfflineFitness
,OnlineFitness
public interface Fitness
Fitness interface
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the amount of drinking points this player hasint
Get the amount of total fitness gained by climbingint
Get the amount of total fitness gained by drinkingint
Get the amount of total fitness gained by flyingint
Get the amount of total fitness gained by eatingint
Get the amount of total fitness gained by health points.int
Get the amount of total fitness gained by sprintingint
Get the amount of total fitness gained by swimmingint
Get the amount of total fitness gained by walkingint
Get the amount of health points this player hasint
Get the amount of healthy food points this player hasint
Get the total fitness (fitness as displayed in scoreboard) for this playerint
Get the amount of unhealthy food points this player hasvoid
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 climbingvoid
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 drinkingvoid
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 flyingvoid
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 eatingvoid
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 pointsvoid
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 sprintingvoid
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 swimmingvoid
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 walkingvoid
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 playervoid
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 usesetTotalFitness(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 usesetDrinkingPoints(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 usesetFitGainedByDrinking(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 usesetFitGainedByWalking(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 usesetFitGainedBySprinting(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 usesetFitGainedByClimbing(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 usesetFitGainedBySwimming(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 usesetFitGainedByFlying(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 usesetHealthPoints(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 usesetFitGainedByHealth(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 usesetHealthyFoodPoints(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 usesetUnhealthyFoodPoints(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 usesetFitGainedByHealth(int)
- Parameters:
fitGainedByFood
- fitness gained by health eating
-