Commits

md_5 authored f636d632c5f
SPIGOT-3259: Clarify JavaDoc regarding totalExperience
No tags

src/main/java/org/bukkit/entity/Player.java

Modified
791 791 public int getLevel();
792 792
793 793 /**
794 794 * Sets the players current experience level
795 795 *
796 796 * @param level New experience level
797 797 */
798 798 public void setLevel(int level);
799 799
800 800 /**
801 - * Gets the players total experience points
801 + * Gets the players total experience points.
802 + * <br>
803 + * This refers to the total amount of experience the player has collected
804 + * over time and is only displayed as the player's "score" upon dying.
802 805 *
803 806 * @return Current total experience points
804 807 */
805 808 public int getTotalExperience();
806 809
807 810 /**
808 - * Sets the players current experience level
811 + * Sets the players current experience points.
812 + * <br>
813 + * This refers to the total amount of experience the player has collected
814 + * over time and is only displayed as the player's "score" upon dying.
809 815 *
810 - * @param exp New experience level
816 + * @param exp New total experience points
811 817 */
812 818 public void setTotalExperience(int exp);
813 819
814 820 /**
815 821 * Gets the players current exhaustion level.
816 822 * <p>
817 823 * Exhaustion controls how fast the food level drops. While you have a
818 824 * certain amount of exhaustion, your saturation will drop to zero, and
819 825 * then your food will drop to zero.
820 826 *

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut