Class OfflineFitness
java.lang.Object
nl.minetopiasdb.api.playerdata.fitness.objects.OfflineFitness
- All Implemented Interfaces:
Fitness
-
Constructor Summary
ConstructorsConstructorDescriptionOfflineFitness(UUID uuid, int total, int drinkingPoints, int fitGainedByDrinking, int fitGainedByWalking, int fitGainedBySprinting, int fitGainedByClimbing, int fitGainedByFlying, int fitGainedBySwimming, int healthPoints, int fitGainedByHealth, int healthyFood, int unhealthyFood, int fitGainedByFood) -
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.
-
Constructor Details
-
OfflineFitness
public OfflineFitness(UUID uuid, int total, int drinkingPoints, int fitGainedByDrinking, int fitGainedByWalking, int fitGainedBySprinting, int fitGainedByClimbing, int fitGainedByFlying, int fitGainedBySwimming, int healthPoints, int fitGainedByHealth, int healthyFood, int unhealthyFood, int fitGainedByFood)
-
-
Method Details
-
getTotalFitness
public int getTotalFitness()Get the total fitness (fitness as displayed in scoreboard) for this player- Specified by:
getTotalFitnessin interfaceFitness- Returns:
- total fitness
-
setTotalFitness
public void setTotalFitness(int total) Set the total fitness for this player- Specified by:
setTotalFitnessin interfaceFitness- Parameters:
total- new total fitness
-
getDrinkingPoints
public int getDrinkingPoints()Get the amount of drinking points this player has- Specified by:
getDrinkingPointsin interfaceFitness- Returns:
- drinking points
-
setDrinkingPoints
public 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.- Specified by:
setDrinkingPointsin interfaceFitness- Parameters:
drinkingPoints- drinking points
-
getFitGainedByDrinking
public int getFitGainedByDrinking()Get the amount of total fitness gained by drinking- Specified by:
getFitGainedByDrinkingin interfaceFitness- Returns:
- fitness gained by drinking
-
setFitGainedByDrinking
public void setFitGainedByDrinking(int fitGainedByDrinking) Set the amount of fitness gained by drinking- Specified by:
setFitGainedByDrinkingin interfaceFitness- Parameters:
fitGainedByDrinking- fitness gained by drinking
-
getFitGainedByWalking
public int getFitGainedByWalking()Get the amount of total fitness gained by walking- Specified by:
getFitGainedByWalkingin interfaceFitness- Returns:
- fitness gained by walking
-
setFitGainedByWalking
public void setFitGainedByWalking(int fitGainedByWalking) Set the amount of fitness gained by walking- Specified by:
setFitGainedByWalkingin interfaceFitness- Parameters:
fitGainedByWalking- fitness gained by walking
-
getFitGainedBySprinting
public int getFitGainedBySprinting()Get the amount of total fitness gained by sprinting- Specified by:
getFitGainedBySprintingin interfaceFitness- Returns:
- fitness gained by sprinting
-
setFitGainedBySprinting
public void setFitGainedBySprinting(int fitGainedBySprinting) Set the amount of fitness gained by sprinting- Specified by:
setFitGainedBySprintingin interfaceFitness- Parameters:
fitGainedBySprinting- fitness gained by sprinting
-
getFitGainedByClimbing
public int getFitGainedByClimbing()Get the amount of total fitness gained by climbing- Specified by:
getFitGainedByClimbingin interfaceFitness- Returns:
- fitness gained by climbing
-
setFitGainedByClimbing
public void setFitGainedByClimbing(int fitGainedByClimbing) Set the amount of fitness gained by climbing- Specified by:
setFitGainedByClimbingin interfaceFitness- Parameters:
fitGainedByClimbing- fitness gained by climbing
-
getFitGainedBySwimming
public int getFitGainedBySwimming()Get the amount of total fitness gained by swimming- Specified by:
getFitGainedBySwimmingin interfaceFitness- Returns:
- fitness gained by swimming
-
setFitGainedBySwimming
public void setFitGainedBySwimming(int fitGainedBySwimming) Set the amount of fitness gained by swimming- Specified by:
setFitGainedBySwimmingin interfaceFitness- Parameters:
fitGainedBySwimming- fitness gained by swimming
-
getFitGainedByFlying
public int getFitGainedByFlying()Get the amount of total fitness gained by flying- Specified by:
getFitGainedByFlyingin interfaceFitness- Returns:
- fitness gained by flying
-
setFitGainedByFlying
public void setFitGainedByFlying(int fitGainedByFlying) Set the amount of fitness gained by flying- Specified by:
setFitGainedByFlyingin interfaceFitness- Parameters:
fitGainedByFlying- fitness gained by flying
-
getHealthPoints
public int getHealthPoints()Get the amount of health points this player has- Specified by:
getHealthPointsin interfaceFitness- Returns:
- health points
-
setHealthPoints
public void setHealthPoints(int healthPoints) Set the amount of health points this player has.- Specified by:
setHealthPointsin interfaceFitness- Parameters:
healthPoints- health points
-
getFitGainedByHealth
public 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.- Specified by:
getFitGainedByHealthin interfaceFitness- Returns:
- fitness gained by health points
-
setFitGainedByHealth
public void setFitGainedByHealth(int fitGainedByHealth) Set the amount of fitness gained by health points- Specified by:
setFitGainedByHealthin interfaceFitness- Parameters:
fitGainedByHealth- fitness gained by health points
-
getHealthyFoodPoints
public int getHealthyFoodPoints()Get the amount of healthy food points this player has- Specified by:
getHealthyFoodPointsin interfaceFitness- Returns:
- healthy food points
-
setHealthyFoodPoints
public void setHealthyFoodPoints(int healthyFood) Set the amount of healthy food points this player has.- Specified by:
setHealthyFoodPointsin interfaceFitness- Parameters:
healthyFood- healthy food points
-
getUnhealthyFoodPoints
public int getUnhealthyFoodPoints()Get the amount of unhealthy food points this player has- Specified by:
getUnhealthyFoodPointsin interfaceFitness- Returns:
- unhealthy food points
-
setUnhealthyFoodPoints
public void setUnhealthyFoodPoints(int unhealthyFood) Set the amount of unhealthy food points this player has.- Specified by:
setUnhealthyFoodPointsin interfaceFitness- Parameters:
unhealthyFood- unhealthy food points
-
getFitGainedByFood
public int getFitGainedByFood()Get the amount of total fitness gained by eating- Specified by:
getFitGainedByFoodin interfaceFitness- Returns:
- fitness gained by eating
-
setFitGainedByFood
public void setFitGainedByFood(int fitGainedByFood) Set the amount of fitness gained by eating- Specified by:
setFitGainedByFoodin interfaceFitness- Parameters:
fitGainedByFood- fitness gained by health eating
-
setTotalFitnessSilent
public void setTotalFitnessSilent(int total) Set the total fitness for this player without communicating it through message channels. Please useFitness.setTotalFitness(int)instead.- Specified by:
setTotalFitnessSilentin interfaceFitness- Parameters:
total- new total fitness
-
setDrinkingPointsSilent
public void setDrinkingPointsSilent(int drinkingPoints) Set the amount of drinking points this player has without communicating it through message channels. Please useFitness.setDrinkingPoints(int)instead.- Specified by:
setDrinkingPointsSilentin interfaceFitness- Parameters:
drinkingPoints- drinking points
-
setFitGainedByDrinkingSilent
public void setFitGainedByDrinkingSilent(int fitGainedByDrinking) Set the amount of fitness gained by drinking without communicating it through message channels. Please useFitness.setFitGainedByDrinking(int)instead.- Specified by:
setFitGainedByDrinkingSilentin interfaceFitness- Parameters:
fitGainedByDrinking- fitness gained by drinking
-
setFitGainedByWalkingSilent
public void setFitGainedByWalkingSilent(int fitGainedByWalking) Set the amount of fitness gained by walking without communicating it through message channels. Please useFitness.setFitGainedByWalking(int)instead.- Specified by:
setFitGainedByWalkingSilentin interfaceFitness- Parameters:
fitGainedByWalking- fitness gained by walking
-
setFitGainedBySprintingSilent
public void setFitGainedBySprintingSilent(int fitGainedBySprinting) Set the amount of fitness gained by sprinting without communicating it through message channels. Please useFitness.setFitGainedBySprinting(int)instead.- Specified by:
setFitGainedBySprintingSilentin interfaceFitness- Parameters:
fitGainedBySprinting- fitness gained by sprinting
-
setFitGainedByClimbingSilent
public void setFitGainedByClimbingSilent(int fitGainedByClimbing) Set the amount of fitness gained by climbing without communicating it through message channels. Please useFitness.setFitGainedByClimbing(int)instead.- Specified by:
setFitGainedByClimbingSilentin interfaceFitness- Parameters:
fitGainedByClimbing- fitness gained by climbing
-
setFitGainedBySwimmingSilent
public void setFitGainedBySwimmingSilent(int fitGainedBySwimming) Set the amount of fitness gained by swimming without communicating it through message channels. Please useFitness.setFitGainedBySwimming(int)instead.- Specified by:
setFitGainedBySwimmingSilentin interfaceFitness- Parameters:
fitGainedBySwimming- fitness gained by swimming
-
setFitGainedByFlyingSilent
public void setFitGainedByFlyingSilent(int fitGainedByFlying) Set the amount of fitness gained by flying without communicating it through message channels. Please useFitness.setFitGainedByFlying(int)instead.- Specified by:
setFitGainedByFlyingSilentin interfaceFitness- Parameters:
fitGainedByFlying- fitness gained by flying
-
setHealthPointsSilent
public void setHealthPointsSilent(int healthPoints) Set the amount of health points this player has without communicating it through message channels. Please useFitness.setHealthPoints(int)instead.- Specified by:
setHealthPointsSilentin interfaceFitness- Parameters:
healthPoints- health points
-
setFitGainedByHealthSilent
public void setFitGainedByHealthSilent(int fitGainedByHealth) Set the amount of fitness gained by health points without communicating it through message channels. Please useFitness.setFitGainedByHealth(int)instead.- Specified by:
setFitGainedByHealthSilentin interfaceFitness- Parameters:
fitGainedByHealth- fitness gained by health points
-
setHealthyFoodPointsSilent
public void setHealthyFoodPointsSilent(int healthyFood) Set the amount of healthy food points this player has without communicating it through message channels. Please useFitness.setHealthyFoodPoints(int)- Specified by:
setHealthyFoodPointsSilentin interfaceFitness- Parameters:
healthyFood- healthy food points
-
setUnhealthyFoodPointsSilent
public void setUnhealthyFoodPointsSilent(int unhealthyFood) Set the amount of unhealthy food points this player has without communicating it through message channels. Please useFitness.setUnhealthyFoodPoints(int)- Specified by:
setUnhealthyFoodPointsSilentin interfaceFitness- Parameters:
unhealthyFood- unhealthy food points
-
setFitGainedByFoodSilent
public void setFitGainedByFoodSilent(int fitGainedByFood) Set the amount of fitness gained by eating without communicating it through message channels. Please useFitness.setFitGainedByHealth(int)- Specified by:
setFitGainedByFoodSilentin interfaceFitness- Parameters:
fitGainedByFood- fitness gained by health eating
-