mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@ -30,10 +30,6 @@ abstract class ExperienceUtils{
|
||||
|
||||
/**
|
||||
* Calculates and returns the amount of XP needed to get from level 0 to level $level
|
||||
*
|
||||
* @param int $level
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function getXpToReachLevel(int $level) : int{
|
||||
if($level <= 16){
|
||||
@ -47,10 +43,6 @@ abstract class ExperienceUtils{
|
||||
|
||||
/**
|
||||
* Returns the amount of XP needed to reach $level + 1.
|
||||
*
|
||||
* @param int $level
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function getXpToCompleteLevel(int $level) : int{
|
||||
if($level <= 15){
|
||||
@ -65,10 +57,6 @@ abstract class ExperienceUtils{
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param int $xp
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public static function getLevelFromXp(int $xp) : float{
|
||||
if($xp <= self::getXpToReachLevel(16)){
|
||||
|
Reference in New Issue
Block a user