Interface IParkour
public interface IParkour
Represents a parkour.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCheckpoint(Checkpoint point, int checkNo) Adds a new checkpoint to the parkour.voidaddHologram(ILeaderboardHologram hologram) Add a hologram as a part of this parkour.voiddeleteCheckpoint(Checkpoint point) Deletes a checkpoint from the parkour.voidRemoves the exit point.voidGenerates all of the holograms for points.Get a list of all points for this parkour.Get a list of the border points setup for the map.getCheckpoint(int checkpointNo) Get a specific checkpoint for this parkour.Get the list of checkpoints active in this parkour.intRetrieves the custom model data of the item associated with this parkour.Get the list of commands to execute for the end of the parkour.Get the parkour end point pressure plate.Get the exit point pressure plate.Returns a list commands to execute for every checkpoint the user gets to.intgetId()Gets the ID of this parkour.shortRetrieves the data for the item associated with this parkour.Retrieves the material of the item associated with this parkour.Retrieves a list of leaderboard holograms attached to this parkour.getName()Get the name of this parkour.intGets the number of checkpoints this parkour has.Gets the list of all players currently playing in the parkour.Gets the restart point of this parkour.intGet the configured reward cooldown.Get the UUID of the server this parkour is attached to.getStart()Gets the start point of this parkour.voidEnd the player on this parkour.voidStart a player on this parkour.voidremoveHologram(ILeaderboardHologram hologram) Remove a hologram that is a part of this parkour.voidRemove all of the holograms for points.voidsetEndCommands(List<String> endCommands) Set the end commands for the parkour.voidsetEndPoint(EndPoint point) Set the end point of the parkour.voidsetExitPoint(ExitPoint exitPoint, boolean alreadyExists) Set the exit point of the parkour.voidsetGlobalCheckpointCommands(List<String> globalCheckpointCommands) Sets the commands that will be executed globally for every checkpoint in this parkour.voidSets the item associated with this parkour.voidSet the name of the parkour.voidsetRestartPoint(RestartPoint point) Set the restart point of the parkour.voidsetStartPoint(StartPoint point) Set the start point of the parkour.
-
Method Details
-
getNoCheckpoints
int getNoCheckpoints()Gets the number of checkpoints this parkour has.- Returns:
- the number of checkpoints.
-
getId
int getId()Gets the ID of this parkour.- Returns:
- the parkour's id.
-
getName
String getName()Get the name of this parkour. This includes colour codes.- Returns:
- the parkour's name.
-
getEndPoint
-
getExitPoint
-
getCheckpoints
List<Checkpoint> getCheckpoints()Get the list of checkpoints active in this parkour.- Returns:
- list of all checkpoints.
-
getPlayers
List<IHubParkourPlayer> getPlayers()Gets the list of all players currently playing in the parkour.- Returns:
- list of active players.
-
getRestartPoint
RestartPoint getRestartPoint()Gets the restart point of this parkour.- Returns:
- the restart point of this parkour.
-
getStart
StartPoint getStart()Gets the start point of this parkour.- Returns:
- the start point of this parkour.
-
getGlobalCheckpointCommands
-
getEndCommands
-
getAllPoints
List<PressurePlate> getAllPoints()Get a list of all points for this parkour.- Returns:
- list of all points.
-
generateHolograms
void generateHolograms()Generates all of the holograms for points. Requires holographic displays to be installed. -
removeHolograms
void removeHolograms()Remove all of the holograms for points. Requires holographic displays to be installed. -
playerStart
Start a player on this parkour.- Parameters:
p- the player to start.
-
playerEnd
End the player on this parkour.- Parameters:
p- the player to end.
-
getCheckpoint
Get a specific checkpoint for this parkour.- Parameters:
checkpointNo- the checkpoint to get.- Returns:
- the checkpoint.
-
addHologram
Add a hologram as a part of this parkour.- Parameters:
hologram- the hologram
-
removeHologram
Remove a hologram that is a part of this parkour.- Parameters:
hologram- the hologram.
-
getLeaderboards
List<ILeaderboardHologram> getLeaderboards()Retrieves a list of leaderboard holograms attached to this parkour.- Returns:
- a list of leaderboards attached to this parkour.
-
setName
Set the name of the parkour.- Parameters:
name- The new name for the parkour.
-
setEndCommands
-
setGlobalCheckpointCommands
-
setStartPoint
Set the start point of the parkour.- Parameters:
point- The new start point for the parkour.
-
setEndPoint
Set the end point of the parkour.- Parameters:
point- The new end point for the parkour.
-
setExitPoint
Set the exit point of the parkour.- Parameters:
exitPoint- The new exit point for the parkour.alreadyExists- Whether the point already exists.
-
setRestartPoint
Set the restart point of the parkour.- Parameters:
point- The new restart point for the parkour.
-
addCheckpoint
Adds a new checkpoint to the parkour.- Parameters:
point- The new start point for the parkour.checkNo- The checkpoint number this should become.
-
deleteCheckpoint
Deletes a checkpoint from the parkour.- Parameters:
point- The checkpoint to remove.
-
deleteExitPoint
void deleteExitPoint()Removes the exit point. -
getBorders
List<BorderPoint> getBorders()Get a list of the border points setup for the map. Should only ever have length of 2.- Returns:
- the list of 2 border points.
-
getRewardCooldown
int getRewardCooldown()Get the configured reward cooldown.- Returns:
- the current reward cooldown.
-
getServer
UUID getServer()Get the UUID of the server this parkour is attached to.- Returns:
- the UUID of the server, or null if this parkour is global.
-
getItemMaterial
Material getItemMaterial()Retrieves the material of the item associated with this parkour.- Returns:
- the material of the associated item.
-
getItemData
short getItemData()Retrieves the data for the item associated with this parkour.- Returns:
- the data of the associated item.
-
getCustomModelData
int getCustomModelData()Retrieves the custom model data of the item associated with this parkour.- Returns:
- the custom model data of the associated item.
-
setItem
Sets the item associated with this parkour.- Parameters:
material- The material of the item to set.data- The data value of the item to set.customModelData- the data of the custom model to apply to the item.
-