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
ConstructorDescriptionGamePlayer
(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.User
Get theUser
of the Player.void
setInteractionHook
(net.dv8tion.jda.api.interactions.InteractionHook interactionHook) Set theInteractionHook
of the User.
-
Constructor Details
-
GamePlayer
public GamePlayer(net.dv8tion.jda.api.entities.User relatedUser) Constructor for the GamePlayer.- Parameters:
relatedUser
- TheUser
of 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 theUser
of the Player.- Returns:
- The
User
of the Player.
-
setInteractionHook
public void setInteractionHook(net.dv8tion.jda.api.interactions.InteractionHook interactionHook) Set theInteractionHook
of the User.- Parameters:
interactionHook
- TheInteractionHook
of the User.
-