public class ParkourRun extends Object
Constructor and Description |
---|
ParkourRun(IHubParkourPlayer player)
Initiates a brand-new parkour run with empty statistics.
|
Modifier and Type | Method and Description |
---|---|
void |
addTravel(double distance)
Executed when the player travels when doing the parkour.
|
void |
checkpointHit()
Executed when a checkpoint is hit.
|
int |
getCheckpointsHit()
Get the amount of checkpoints the player has hit this run.
|
int |
getJumps()
Get the amount of times the player has jumped in this run.
|
IHubParkourPlayer |
getPlayer()
Get the player who is doing this parkour run.
|
double |
getTotalDistanceTravelled()
Get the total distance travelled this run.
|
void |
jumped()
Executed when the player jumps.
|
public ParkourRun(IHubParkourPlayer player)
player
- the player who is doing this run.public double getTotalDistanceTravelled()
public IHubParkourPlayer getPlayer()
public int getCheckpointsHit()
public int getJumps()
public void checkpointHit()
public void jumped()
public void addTravel(double distance)
distance
- the distance travelled.Copyright © 2025. All rights reserved.