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 Type
    Method
    Description
    default @NotNull net.kyori.adventure.audience.Audience
     
    default @NotNull net.kyori.adventure.identity.Identity
     
    default void
    sendFailure(@NotNull net.kyori.adventure.text.Component text)
    Send an error message to the command source.
    default void
    sendSuccess(@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, 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

      @NotNull default @NotNull net.kyori.adventure.identity.Identity identity()
      Specified by:
      identity in interface net.kyori.adventure.identity.Identified
    • audience

      @NotNull default @NotNull net.kyori.adventure.audience.Audience audience()
      Specified by:
      audience in interface net.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 send
      sendToOps - 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