BedrioxDOCUMENTATION
API CLASS

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): self

Typed public method.

getSnapshot(): Bedriox\Api\Player\ExperienceSnapshot

Typed public method.

getTotalPoints(): int

Typed public method.

getLevel(): int

Typed public method.

getProgress(): float

Typed public method.

setTotalPoints(int $points, Bedriox\Api\Player\ExperienceChangeCause $cause = \Bedriox\Api\Player\ExperienceChangeCause::PLUGIN): void

Typed public method.

addPoints(int $points, Bedriox\Api\Player\ExperienceChangeCause $cause = \Bedriox\Api\Player\ExperienceChangeCause::PLUGIN): void

Typed public method.

removePoints(int $points, Bedriox\Api\Player\ExperienceChangeCause $cause = \Bedriox\Api\Player\ExperienceChangeCause::PLUGIN): void

Typed public method.

View exact source ↗