summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-22 18:51:55 +1000
committermd_5 <git@md-5.net>2017-05-22 18:51:55 +1000
commitf636d632c5f08faf88d91034ba493020943e2c2f (patch)
tree98f8535162f5ecd3307c1125b1573fed4d1641cb /src
parent60a4fa84ba7a6254d77017501a900b148aad2bfe (diff)
downloadbukkit-f636d632c5f08faf88d91034ba493020943e2c2f.tar
bukkit-f636d632c5f08faf88d91034ba493020943e2c2f.tar.gz
bukkit-f636d632c5f08faf88d91034ba493020943e2c2f.tar.lz
bukkit-f636d632c5f08faf88d91034ba493020943e2c2f.tar.xz
bukkit-f636d632c5f08faf88d91034ba493020943e2c2f.zip
SPIGOT-3259: Clarify JavaDoc regarding totalExperience
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Player.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index a2ebcae1..92604ab3 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -798,16 +798,22 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
public void setLevel(int level);
/**
- * Gets the players total experience points
+ * Gets the players total experience points.
+ * <br>
+ * This refers to the total amount of experience the player has collected
+ * over time and is only displayed as the player's "score" upon dying.
*
* @return Current total experience points
*/
public int getTotalExperience();
/**
- * Sets the players current experience level
+ * Sets the players current experience points.
+ * <br>
+ * This refers to the total amount of experience the player has collected
+ * over time and is only displayed as the player's "score" upon dying.
*
- * @param exp New experience level
+ * @param exp New total experience points
*/
public void setTotalExperience(int exp);