Class GamePlayer

java.lang.Object
de.presti.ree6.game.core.base.GamePlayer
Direct Known Subclasses:
BlackJackPlayer, MusicQuizPlayer

public class GamePlayer extends Object
Entity for Games to access Players.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GamePlayer(long relatedUserId)
    Constructor for the GamePlayer.
    GamePlayer(net.dv8tion.jda.api.entities.User relatedUser)
    Constructor for the GamePlayer.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.dv8tion.jda.api.entities.User
    Get the User of the Player.
    void
    setInteractionHook(net.dv8tion.jda.api.interactions.InteractionHook interactionHook)
    Set the InteractionHook of the User.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GamePlayer

      public GamePlayer(net.dv8tion.jda.api.entities.User relatedUser)
      Constructor for the GamePlayer.
      Parameters:
      relatedUser - The User 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 the User of the Player.
      Returns:
      The User of the Player.
    • setInteractionHook

      public void setInteractionHook(net.dv8tion.jda.api.interactions.InteractionHook interactionHook)
      Set the InteractionHook of the User.
      Parameters:
      interactionHook - The InteractionHook of the User.