ExperienceManager
Public bounded mutation surface for a player's authoritative experience.
Bedriox\Api\Player\ExperienceManager
classBedriox\Api\Player
Public methods
__construct(Bedriox\Api\Player\ExperienceSnapshot $snapshot, Closure $setTotalPoints)Typed public method.
static unavailable(Bedriox\Api\Player\ExperienceSnapshot $snapshot): selfTyped public method.
getSnapshot(): Bedriox\Api\Player\ExperienceSnapshotTyped public method.
getTotalPoints(): intTyped public method.
getLevel(): intTyped public method.
getProgress(): floatTyped public method.
setTotalPoints(int $points, Bedriox\Api\Player\ExperienceChangeCause $cause = \Bedriox\Api\Player\ExperienceChangeCause::PLUGIN): voidTyped public method.
addPoints(int $points, Bedriox\Api\Player\ExperienceChangeCause $cause = \Bedriox\Api\Player\ExperienceChangeCause::PLUGIN): voidTyped public method.
removePoints(int $points, Bedriox\Api\Player\ExperienceChangeCause $cause = \Bedriox\Api\Player\ExperienceChangeCause::PLUGIN): voidTyped public method.
