public interface IParkour
Modifier and Type | Method and Description |
---|---|
void |
addCheckpoint(Checkpoint point,
int checkNo)
Adds a new checkpoint to the parkour.
|
void |
addHologram(ILeaderboardHologram hologram)
Add a hologram as a part of this parkour.
|
void |
deleteCheckpoint(Checkpoint point)
Deletes a checkpoint from the parkour.
|
void |
deleteExitPoint()
Removes the exit point.
|
void |
generateHolograms()
Generates all of the holograms for points.
|
List<PressurePlate> |
getAllPoints()
Get a list of all points for this parkour.
|
List<BorderPoint> |
getBorders()
Get a list of the border points setup for the map.
|
Checkpoint |
getCheckpoint(int checkpointNo)
Get a specific checkpoint for this parkour.
|
List<Checkpoint> |
getCheckpoints()
Get the list of checkpoints active in this parkour.
|
int |
getCustomModelData()
Retrieves the custom model data of the item associated with this parkour.
|
List<String> |
getEndCommands()
Get the list of commands to execute for the end of the parkour.
|
EndPoint |
getEndPoint()
Get the parkour end point pressure plate.
|
ExitPoint |
getExitPoint()
Get the exit point pressure plate.
|
List<String> |
getGlobalCheckpointCommands()
Returns a list commands to execute for every checkpoint the user gets to.
|
int |
getId()
Gets the ID of this parkour.
|
short |
getItemData()
Retrieves the data for the item associated with this parkour.
|
org.bukkit.Material |
getItemMaterial()
Retrieves the material of the item associated with this parkour.
|
List<ILeaderboardHologram> |
getLeaderboards()
Retrieves a list of leaderboard holograms attached to this parkour.
|
String |
getName()
Get the name of this parkour.
|
int |
getNoCheckpoints()
Gets the number of checkpoints this parkour has.
|
List<IHubParkourPlayer> |
getPlayers()
Gets the list of all players currently playing in the parkour.
|
RestartPoint |
getRestartPoint()
Gets the restart point of this parkour.
|
int |
getRewardCooldown()
Get the configured reward cooldown.
|
UUID |
getServer()
Get the UUID of the server this parkour is attached to.
|
StartPoint |
getStart()
Gets the start point of this parkour.
|
void |
playerEnd(IHubParkourPlayer p)
End the player on this parkour.
|
void |
playerStart(IHubParkourPlayer p)
Start a player on this parkour.
|
void |
removeHologram(ILeaderboardHologram hologram)
Remove a hologram that is a part of this parkour.
|
void |
removeHolograms()
Remove all of the holograms for points.
|
void |
setEndCommands(List<String> endCommands)
Set the end commands for the parkour.
|
void |
setEndPoint(EndPoint point)
Set the end point of the parkour.
|
void |
setExitPoint(ExitPoint exitPoint,
boolean alreadyExists)
Set the exit point of the parkour.
|
void |
setGlobalCheckpointCommands(List<String> globalCheckpointCommands)
Sets the commands that will be executed globally for every checkpoint in this parkour.
|
void |
setItem(org.bukkit.Material material,
short data,
int customModelData)
Sets the item associated with this parkour.
|
void |
setName(String name)
Set the name of the parkour.
|
void |
setRestartPoint(RestartPoint point)
Set the restart point of the parkour.
|
void |
setStartPoint(StartPoint point)
Set the start point of the parkour.
|
int getNoCheckpoints()
int getId()
String getName()
EndPoint getEndPoint()
ExitPoint getExitPoint()
List<Checkpoint> getCheckpoints()
List<IHubParkourPlayer> getPlayers()
RestartPoint getRestartPoint()
StartPoint getStart()
List<String> getGlobalCheckpointCommands()
List<String> getEndCommands()
List<PressurePlate> getAllPoints()
void generateHolograms()
void removeHolograms()
void playerStart(IHubParkourPlayer p)
p
- the player to start.void playerEnd(IHubParkourPlayer p)
p
- the player to end.Checkpoint getCheckpoint(int checkpointNo)
checkpointNo
- the checkpoint to get.void addHologram(ILeaderboardHologram hologram)
hologram
- the hologramvoid removeHologram(ILeaderboardHologram hologram)
hologram
- the hologram.List<ILeaderboardHologram> getLeaderboards()
void setName(String name)
name
- The new name for the parkour.void setEndCommands(List<String> endCommands)
endCommands
- The new end commands for the parkour.void setGlobalCheckpointCommands(List<String> globalCheckpointCommands)
globalCheckpointCommands
- The list of commands to be executed for global checkpoints.void setStartPoint(StartPoint point)
point
- The new start point for the parkour.void setEndPoint(EndPoint point)
point
- The new end point for the parkour.void setExitPoint(ExitPoint exitPoint, boolean alreadyExists)
exitPoint
- The new exit point for the parkour.alreadyExists
- Whether the point already exists.void setRestartPoint(RestartPoint point)
point
- The new restart point for the parkour.void addCheckpoint(Checkpoint point, int checkNo)
point
- The new start point for the parkour.checkNo
- The checkpoint number this should become.void deleteCheckpoint(Checkpoint point)
point
- The checkpoint to remove.void deleteExitPoint()
List<BorderPoint> getBorders()
int getRewardCooldown()
UUID getServer()
org.bukkit.Material getItemMaterial()
short getItemData()
int getCustomModelData()
void setItem(org.bukkit.Material material, short data, int customModelData)
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.Copyright © 2025. All rights reserved.