Interface ServerUser

  • All Superinterfaces:
    net.kyori.adventure.audience.Audience, ChatUser, net.kyori.adventure.identity.Identified, MetadataHolder, PermissionHolder, net.kyori.adventure.pointer.Pointered, User

    @NonExtendable
    public interface ServerUser
    extends User
    Represents a connected Minecraft player on a server.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull GameMode getGameMode()
      Get the current game mode of this user.
      void setGameMode​(@NotNull GameMode gameMode)
      Change the game mode of this user.
      • Methods inherited from interface net.kyori.adventure.audience.Audience

        clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
      • Methods inherited from interface net.kyori.adventure.pointer.Pointered

        get, getOrDefault, getOrDefaultFrom, pointers
    • Method Detail

      • getGameMode

        @NotNull
        @NotNull GameMode getGameMode()
        Get the current game mode of this user.
        Returns:
        game mode.
      • setGameMode

        void setGameMode​(@NotNull
                         @NotNull GameMode gameMode)
        Change the game mode of this user.
        Parameters:
        gameMode - New game mode.