Package ovh.mythmc.social.api.user
Class ConsoleSocialUser
java.lang.Object
ovh.mythmc.social.api.user.AbstractSocialUser
ovh.mythmc.social.api.user.ConsoleSocialUser
- All Implemented Interfaces:
Audience,ForwardingAudience,ForwardingAudience.Single,Pointered,ChatParticipant,Identified,CompanionClient,OnlinePresence,Reactable,SocialUser,UserPreferences
AbstractSocialUser implementation which represents the console as a
SocialUser.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
ForwardingAudience.Single -
Field Summary
Fields inherited from class ovh.mythmc.social.api.user.AbstractSocialUser
blockedChannelNames, companion, displayName, lastMessageTimestamp, lastPrivateMessageRecipient, mainChannel, rendererClass, socialSpy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudience()booleancheckPermission(@NotNull String permission) Checks if thisSocialUserhas a specific permission node.static @NotNull ConsoleSocialUserget()static @NotNull ConsoleSocialUserget(@NotNull ChatChannel channel) booleanisOnline()Determines whether the entity is currently online.<T extends NetworkPayloadWrapper.ServerToClient>
voidsendCustomPayload(@NotNull S2CNetworkChannelWrapper<T> channel, T payload) Sends a custom payload to this user.Methods inherited from class ovh.mythmc.social.api.user.AbstractSocialUser
blockedChannels, companion, displayName, groupChannel, isExpired, lastMessageTimestamp, lastPrivateMessageRecipient, mainChannel, playReaction, rendererClass, socialSpy, username, uuidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
deleteMessage, openBook, removeResourcePacks, removeResourcePacks, removeResourcePacks, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, showTitle, stopSoundMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single
audiences, clearResourcePacks, clearTitle, deleteMessage, filterAudience, forEachAudience, get, getOrDefault, getOrDefaultFrom, hideBossBar, openBook, playSound, playSound, playSound, pointers, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendTitlePart, showBossBar, stopSoundMethods inherited from interface ovh.mythmc.social.api.user.SocialUser
displayNameOrUsername, sendParsableMessage, sendParsableMessage, sendParsableMessage, sendParsableMessage, sendParsableMessage, sendParsableMessage
-
Constructor Details
-
ConsoleSocialUser
protected ConsoleSocialUser()
-
-
Method Details
-
get
-
get
-
checkPermission
Description copied from interface:SocialUserChecks if thisSocialUserhas a specific permission node.- Parameters:
permission- the permission node to check- Returns:
trueif the user has the specific permission node,falseotherwise
-
sendCustomPayload
public <T extends NetworkPayloadWrapper.ServerToClient> void sendCustomPayload(@NotNull @NotNull S2CNetworkChannelWrapper<T> channel, @NotNull T payload) Description copied from interface:CompanionClientSends a custom payload to this user.- Type Parameters:
T- theNetworkPayloadWrapper.ServerToClientimplementation to send- Parameters:
channel- theS2CNetworkChannelWrapperwhere the payload should be sentpayload- the payload that should be sent
-
isOnline
public boolean isOnline()Description copied from interface:OnlinePresenceDetermines whether the entity is currently online.- Returns:
trueif the entity is online,falseotherwise
-
audience
-