Interface Fitness
- All Known Implementing Classes:
OfflineFitness,OnlineFitness
public interface Fitness
Fitness interface
-
Method Summary
Modifier and TypeMethodDescriptionintGet the amount of drinking points this player hasintGet the amount of total fitness gained by climbingintGet the amount of total fitness gained by drinkingintGet the amount of total fitness gained by flyingintGet the amount of total fitness gained by eatingintGet the amount of total fitness gained by health points.intGet the amount of total fitness gained by sprintingintGet the amount of total fitness gained by swimmingintGet the amount of total fitness gained by walkingintGet the amount of health points this player hasintGet the amount of healthy food points this player hasintGet the total fitness (fitness as displayed in scoreboard) for this playerintGet the amount of unhealthy food points this player hasvoidsetDrinkingPoints(int drinkingPoints) Set the amount of drinking points this player has.voidsetDrinkingPointsSilent(int drinkingPoints) Set the amount of drinking points this player has without communicating it through message channels.voidsetFitGainedByClimbing(int fitGainedByClimbing) Set the amount of fitness gained by climbingvoidsetFitGainedByClimbingSilent(int fitGainedByClimbing) Set the amount of fitness gained by climbing without communicating it through message channels.voidsetFitGainedByDrinking(int fitGainedByDrinking) Set the amount of fitness gained by drinkingvoidsetFitGainedByDrinkingSilent(int fitGainedByDrinking) Set the amount of fitness gained by drinking without communicating it through message channels.voidsetFitGainedByFlying(int fitGainedByFlying) Set the amount of fitness gained by flyingvoidsetFitGainedByFlyingSilent(int fitGainedByFlying) Set the amount of fitness gained by flying without communicating it through message channels.voidsetFitGainedByFood(int fitGainedByFood) Set the amount of fitness gained by eatingvoidsetFitGainedByFoodSilent(int fitGainedByFood) Set the amount of fitness gained by eating without communicating it through message channels.voidsetFitGainedByHealth(int fitGainedByHealth) Set the amount of fitness gained by health pointsvoidsetFitGainedByHealthSilent(int fitGainedByHealth) Set the amount of fitness gained by health points without communicating it through message channels.voidsetFitGainedBySprinting(int fitGainedBySprinting) Set the amount of fitness gained by sprintingvoidsetFitGainedBySprintingSilent(int fitGainedBySprinting) Set the amount of fitness gained by sprinting without communicating it through message channels.voidsetFitGainedBySwimming(int fitGainedBySwimming) Set the amount of fitness gained by swimmingvoidsetFitGainedBySwimmingSilent(int fitGainedBySwimming) Set the amount of fitness gained by swimming without communicating it through message channels.voidsetFitGainedByWalking(int fitGainedByWalking) Set the amount of fitness gained by walkingvoidsetFitGainedByWalkingSilent(int fitGainedByWalking) Set the amount of fitness gained by walking without communicating it through message channels.voidsetHealthPoints(int healthPoints) Set the amount of health points this player has.voidsetHealthPointsSilent(int healthPoints) Set the amount of health points this player has without communicating it through message channels.voidsetHealthyFoodPoints(int healthyFood) Set the amount of healthy food points this player has.voidsetHealthyFoodPointsSilent(int healthyFood) Set the amount of healthy food points this player has without communicating it through message channels.voidsetTotalFitness(int total) Set the total fitness for this playervoidsetTotalFitnessSilent(int total) Set the total fitness for this player without communicating it through message channels.voidsetUnhealthyFoodPoints(int unhealthyFood) Set the amount of unhealthy food points this player has.voidsetUnhealthyFoodPointsSilent(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
-