Package de.presti.ree6.game.core.base
Class GamePlayer
java.lang.Object
de.presti.ree6.game.core.base.GamePlayer
- Direct Known Subclasses:
BlackJackPlayer,MusicQuizPlayer
Entity for Games to access Players.
-
Constructor Summary
ConstructorsConstructorDescriptionGamePlayer(long relatedUserId) Constructor for the GamePlayer.GamePlayer(net.dv8tion.jda.api.entities.User relatedUser) Constructor for the GamePlayer. -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.entities.UserGet theUserof the Player.voidsetInteractionHook(net.dv8tion.jda.api.interactions.InteractionHook interactionHook) Set theInteractionHookof the User.
-
Constructor Details
-
GamePlayer
public GamePlayer(net.dv8tion.jda.api.entities.User relatedUser) Constructor for the GamePlayer.- Parameters:
relatedUser- TheUserof the Player.
-
GamePlayer
public GamePlayer(long relatedUserId) Constructor for the GamePlayer.- Parameters:
relatedUserId- The ID of the User.
-
-
Method Details
-
getRelatedUser
public net.dv8tion.jda.api.entities.User getRelatedUser()Get theUserof the Player.- Returns:
- The
Userof the Player.
-
setInteractionHook
public void setInteractionHook(net.dv8tion.jda.api.interactions.InteractionHook interactionHook) Set theInteractionHookof the User.- Parameters:
interactionHook- TheInteractionHookof the User.
-