Package com.melluh.servertours.api
Interface PlaybackManager
public interface PlaybackManager
-
Method Summary
Modifier and TypeMethodDescriptiongetTouringPlayer
(org.bukkit.entity.Player player) Gets theTouringPlayer
object for the specified player.List<? extends TouringPlayer>
Gets all theTouringPlayer
that are currently watching a tour route.List<? extends TouringPlayer>
getTouringPlayers
(Route route) Gets all theTouringPlayer
that 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 theTouringPlayer
object 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 theTouringPlayer
that are currently watching the specified tour route.- Parameters:
route
- the route- Returns:
- immutable list of
TouringPlayer
s
-
getTouringPlayers
List<? extends TouringPlayer> getTouringPlayers()Gets all theTouringPlayer
that are currently watching a tour route.- Returns:
- immutable list of
TouringPlayer
s
-