Package net.pl3x.map.core.command
Class Sender
java.lang.Object
net.pl3x.map.core.command.Sender
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.audience.ForwardingAudience
,net.kyori.adventure.audience.ForwardingAudience.Single
,net.kyori.adventure.pointer.Pointered
public abstract class Sender
extends Object
implements net.kyori.adventure.audience.ForwardingAudience.Single
Represents a command sender.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.Single
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.audience.Audience
audience()
abstract boolean
<T> T
abstract int
hashCode()
void
sendMessage
(boolean prefix, @NotNull net.kyori.adventure.text.ComponentLike message) void
sendMessage
(@NotNull String message) void
sendMessage
(@NotNull String message, boolean prefix) void
sendMessage
(@NotNull String message, boolean prefix, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Single... placeholders) void
sendMessage
(@NotNull String message, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Single... placeholders) abstract @NotNull String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, stopSound
Methods 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, stopSound
-
Constructor Details
-
Sender
public Sender(@NotNull T sender)
-
-
Method Details
-
getSender
@NotNull public <T> T getSender() -
audience
@NotNull public @NotNull net.kyori.adventure.audience.Audience audience()- Specified by:
audience
in interfacenet.kyori.adventure.audience.ForwardingAudience.Single
-
sendMessage
-
sendMessage
-
sendMessage
public void sendMessage(@NotNull @NotNull String message, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Single... placeholders) -
sendMessage
public void sendMessage(@NotNull @NotNull String message, boolean prefix, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Single... placeholders) -
sendMessage
public void sendMessage(boolean prefix, @NotNull @NotNull net.kyori.adventure.text.ComponentLike message) -
equals
-
hashCode
public abstract int hashCode() -
toString
-