#460: Add Player#sendExperienceChange

By: anhcraft <huynhduyanh123123@gmail.com>
This commit is contained in:
Bukkit/Spigot
2019-12-23 11:22:34 +07:00
parent eb28d87c9f
commit f6d57504d7

View File

@@ -834,6 +834,31 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
*/
public void setTotalExperience(int exp);
/**
* Send an experience change.
*
* This fakes an experience change packet for a user. This will not actually
* change the experience points in any way.
*
* @param progress Experience progress percentage (between 0.0 and 1.0)
* @see #setExp(float)
*/
public void sendExperienceChange(float progress);
/**
* Send an experience change.
*
* This fakes an experience change packet for a user. This will not actually
* change the experience points in any way.
*
* @param progress New experience progress percentage (between 0.0 and 1.0)
* @param level New experience level
*
* @see #setExp(float)
* @see #setLevel(int)
*/
public void sendExperienceChange(float progress, int level);
/**
* Gets the players current exhaustion level.
* <p>