|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Collaboration diagram for pocketmine\entity\utils\ExperienceUtils:Static Public Member Functions | |
| static | getLevelFromXp (int $xp) |
| static | getXpToCompleteLevel (int $level) |
| static | getXpToReachLevel (int $level) |
Definition at line 31 of file ExperienceUtils.php.
|
static |
Calculates and returns the number of XP levels the specified amount of XP points are worth. This returns a floating-point number, the decimal part being the progress through the resulting level.
Definition at line 63 of file ExperienceUtils.php.
|
static |
Returns the amount of XP needed to reach $level + 1.
Definition at line 49 of file ExperienceUtils.php.
|
static |
Calculates and returns the amount of XP needed to get from level 0 to level $level
Definition at line 36 of file ExperienceUtils.php.