Interface AdventureCommandSourceStack
- All Superinterfaces:
Audience, ForwardingAudience, ForwardingAudience.Single, Identified, Pointered
An interface applied to
CommandSourceStack to allow sending Components.- Since:
- 6.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface ForwardingAudience
ForwardingAudience.Single -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Audienceaudience()default @NotNull Identityidentity()default voidsendFailure(@NotNull Component text) Send an error message to the command source.default voidsendLazySuccess(@NotNull Supplier<Component> text, boolean sendToOps) Send a result message to the command source.default voidsendSuccess(@NotNull Component text, boolean sendToOps) Send a result message to the command source.Methods inherited from interface 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 ForwardingAudience.Single
audiences, clearResourcePacks, clearTitle, closeDialog, 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, showDialog, stopSound
-
Method Details
-
identity
- Specified by:
identityin interfaceIdentified
-
audience
- Specified by:
audiencein 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:
- 6.0.0
-
sendLazySuccess
-
sendFailure
Send an error message to the command source.- Parameters:
text- The error- Since:
- 6.0.0
-