public interface IHubParkourPlayer
Modifier and Type | Method and Description |
---|---|
void |
checkpoint(Checkpoint checkpoint)
What happens when a user reaches a checkpoint.
|
void |
end(ParkourPlayerFailEvent.FailCause cause)
What happens when the player has finished the parkour
|
org.bukkit.scheduler.BukkitTask |
getActionBarTask()
Get the active action bar task.
|
long |
getCurrentSplit()
Get the time of the users current split.
|
int |
getLastReached()
Gets the last reached checkpoint
|
IParkour |
getParkour()
Gets the parkour this player is currently in.
|
List<ParkourItem> |
getParkourItems()
Get a list of all of the parkour items.
|
ParkourRun |
getParkourRun()
Get the user's current parkour run.
|
org.bukkit.entity.Player |
getPlayer()
Get the
org.bukkit.entity.Player object of the player. |
org.bukkit.GameMode |
getPrevGamemode()
Get the gamemode the player was in before the parkour was started.
|
double |
getPrevHealth()
Get the health the player was at before the parkour was started.
|
int |
getPrevHunger()
Get the hunger the player was at before the parkour was started.
|
long |
getPrevious()
Get the time they got on the last time they completed the parkour.
|
Map<Integer,Long> |
getSplitTimes()
Get a map of all split times, mapped by checkpoint number.
|
long |
getStartTime()
Get the timestamp of when they started the parkour.
|
boolean |
hasTouchedGround()
Whether the user has touched the ground since their last jump.
|
void |
leftGround()
Executed when the user leaves the ground.
|
void |
restart()
When happens when the player restarts the parkour.
|
void |
setToPrevState()
Resets all player states that were modified when starting the parkour.
|
void |
startParkour()
Give a player all of the parkour items, and update the player state.
|
void |
touchedGround()
Executed when the user touches the ground.
|
void checkpoint(Checkpoint checkpoint)
checkpoint
- the checkpoint reached.void end(ParkourPlayerFailEvent.FailCause cause)
cause
- The cause of the end. Null if this was a parkour completed.int getLastReached()
IParkour getParkour()
org.bukkit.entity.Player getPlayer()
org.bukkit.entity.Player
object of the player.void restart()
long getPrevious()
long getStartTime()
List<ParkourItem> getParkourItems()
void startParkour()
void setToPrevState()
org.bukkit.scheduler.BukkitTask getActionBarTask()
Map<Integer,Long> getSplitTimes()
long getCurrentSplit()
org.bukkit.GameMode getPrevGamemode()
double getPrevHealth()
int getPrevHunger()
ParkourRun getParkourRun()
boolean hasTouchedGround()
void touchedGround()
void leftGround()
Copyright © 2025. All rights reserved.