Package com.melluh.servertours.api
Interface PlaybackManager
public interface PlaybackManager
-
Method Summary
Modifier and TypeMethodDescriptiongetTouringPlayer(org.bukkit.entity.Player player) Gets theTouringPlayerobject for the specified player.List<? extends TouringPlayer>Gets all theTouringPlayerthat are currently watching a tour route.List<? extends TouringPlayer>getTouringPlayers(Route route) Gets all theTouringPlayerthat are currently watching the specified tour route.Starts playing the specified tour route for a player.
-
Method Details
-
showTour
Starts playing the specified tour route for a player. If the player is already being shown another tour, that tour will be cancelled.- Parameters:
player- the playerroute- the route to show- Returns:
- the new
TouringPlayer
-
getTouringPlayer
Gets theTouringPlayerobject for the specified player. If the player isn't watching a tour, this returnsnull.- Parameters:
player- the player- Returns:
- the
TouringPlayer, ornull
-
getTouringPlayers
Gets all theTouringPlayerthat are currently watching the specified tour route.- Parameters:
route- the route- Returns:
- immutable list of
TouringPlayers
-
getTouringPlayers
List<? extends TouringPlayer> getTouringPlayers()Gets all theTouringPlayerthat are currently watching a tour route.- Returns:
- immutable list of
TouringPlayers
-