Interface IOnboardingService
- All Known Implementing Classes:
BaseOnboardingService
public interface IOnboardingService
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the player to the onboarding room.booleanReturnstrueif the player is in the onboarding room.booleanReturnstrueifplayeris in the onboarding world.booleanReturns true if the onboarding room is enabled.voidreload()Reloads the onboarding service.voidIfplayeris in the onboarding room, then this method will remove the player from the room.voidShows the onboarding book toplayer.
-
Method Details
-
add
Adds the player to the onboarding room.- Parameters:
player- the player
-
remove
Ifplayeris 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
Returnstrueif 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
Returnstrueifplayeris 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.
-