mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
#460: Add Player#sendExperienceChange
By: anhcraft <huynhduyanh123123@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user