Interface AdventureCommandSourceStack
- All Superinterfaces:
Audience
,ForwardingAudience
,ForwardingAudience.Single
,Identified
,Pointered
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
ForwardingAudience.Single
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Audience
audience()
default @NotNull Identity
identity()
default void
sendFailure
(@NotNull Component text) Send an error message to the command source.default void
sendLazySuccess
(@NotNull Supplier<Component> text, boolean sendToOps) Send a result message to the command source.default void
sendSuccess
(@NotNull 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, stopSound
Methods 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
- Specified by:
identity
in interfaceIdentified
-
audience
- Specified by:
audience
in interfaceForwardingAudience.Single
-
sendSuccess
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
-
sendLazySuccess
Send a result message to the command source.- Parameters:
text
- A supplier providing the message to sendsendToOps
- If this message should be sent to all ops listening- Since:
- 5.10.0
-
sendFailure
Send an error message to the command source.- Parameters:
text
- The error- Since:
- 4.0.0
-