Package dev.hypera.chameleon.user
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.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @NotNull StringgetName()Get the name of this user.default booleanhasInteractiveChat()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 dev.hypera.chameleon.user.PermissionHolder
hasPermission
-
-
-
-
Field Detail
-
NAME
@NotNull static final @NotNull String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@NotNull default @NotNull String getName()
Get the name of this user.
-
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:
hasInteractiveChatin interfaceChatUser- Returns:
trueif this user can interact with chat, otherwisefalse.
-
-