Interface IOnboardingService
- All Known Implementing Classes:
BaseOnboardingService
public interface IOnboardingService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the player to the onboarding room.boolean
Returnstrue
if the player is in the onboarding room.boolean
Returnstrue
ifplayer
is in the onboarding world.boolean
Returns true if the onboarding room is enabled.void
reload()
Reloads the onboarding service.void
Ifplayer
is in the onboarding room, then this method will remove the player from the room.void
Shows the onboarding book toplayer
.
-
Method Details
-
add
Adds the player to the onboarding room.- Parameters:
player
- the player
-
remove
Ifplayer
is in the onboarding room, then this method will remove the player from the room.Otherwise, this method will do nothing.
- Parameters:
player
- the player
-
showBook
Shows the onboarding book toplayer
.- Parameters:
player
- the player
-
isEnabled
boolean isEnabled()Returns true if the onboarding room is enabled.- Returns:
- true or false
-
inRoom
Returnstrue
if the player is in the onboarding room.If the player is in the onboarding world, but not currently onboarding, then this will return false.
Use
inWorld(IPlayer)
to check if they are in the world.- Parameters:
player
- the player- Returns:
- true or false
-
inWorld
Returnstrue
ifplayer
is in the onboarding world.Note that this method will return true if the player is in the world, regardless of their status with the onboarding room.
- Parameters:
player
- the player- Returns:
- true or false
-
reload
void reload()Reloads the onboarding service.
-