Interface ConsoleUser

  • All Superinterfaces:
    net.kyori.adventure.audience.Audience, ChatUser, PermissionHolder, net.kyori.adventure.pointer.Pointered

    @NonExtendable
    public interface ConsoleUser
    extends ChatUser
    Represents a console that can receive messages.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static @NotNull String NAME  
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default @NotNull String getName()
      Get the name of this user.
      default boolean hasInteractiveChat()
      Get whether this user can interact with chat messages.
      • 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

      • getName

        @NotNull
        default @NotNull String getName()
        Get the name of this user.
        Specified by:
        getName in interface ChatUser
        Returns:
        name.
      • hasInteractiveChat

        default boolean hasInteractiveChat()
        Get whether this user can interact with chat messages.

        An example usage of this would be checking if a user can click on a chat message, and if so use a click event for a link, otherwise just display the link.

        Specified by:
        hasInteractiveChat in interface ChatUser
        Returns:
        true if this user can interact with chat, otherwise false.