Interface AdventureCommandSourceStack
- All Superinterfaces:
net.kyori.adventure.audience.Audience,net.kyori.adventure.audience.ForwardingAudience,net.kyori.adventure.audience.ForwardingAudience.Single,net.kyori.adventure.identity.Identified,net.kyori.adventure.pointer.Pointered
- All Known Subinterfaces:
AdventureCommandSourceStackInternal
- All Known Implementing Classes:
CommandSourceStackMixin
public interface AdventureCommandSourceStack
extends net.kyori.adventure.audience.ForwardingAudience.Single, net.kyori.adventure.identity.Identified
An interface applied to
CommandSourceStack to allow sending Components.- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.Single -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull net.kyori.adventure.audience.Audienceaudience()default @NotNull net.kyori.adventure.identity.Identityidentity()default voidsendFailure(@NotNull net.kyori.adventure.text.Component text) Send an error message to the command source.default voidsendSuccess(@NotNull net.kyori.adventure.text.Component text, boolean sendToOps) Send a result message to the command source.Methods inherited from interface net.kyori.adventure.audience.Audience
deleteMessage, openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showTitle, stopSoundMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single
audiences, clearTitle, deleteMessage, filterAudience, forEachAudience, get, getOrDefault, getOrDefaultFrom, hideBossBar, openBook, playSound, playSound, playSound, pointers, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, stopSound
-
Method Details
-
identity
@NotNull default @NotNull net.kyori.adventure.identity.Identity identity()- Specified by:
identityin interfacenet.kyori.adventure.identity.Identified
-
audience
@NotNull default @NotNull net.kyori.adventure.audience.Audience audience()- Specified by:
audiencein interfacenet.kyori.adventure.audience.ForwardingAudience.Single
-
sendSuccess
default void sendSuccess(@NotNull @NotNull net.kyori.adventure.text.Component text, boolean sendToOps) Send a result message to the command source.- Parameters:
text- The text to sendsendToOps- If this message should be sent to all ops listening- Since:
- 4.0.0
-
sendFailure
default void sendFailure(@NotNull @NotNull net.kyori.adventure.text.Component text) Send an error message to the command source.- Parameters:
text- The error- Since:
- 4.0.0
-