Interface AdventureCommandSourceStack

All Superinterfaces:
Audience, ForwardingAudience, ForwardingAudience.Single, Identified, Pointered

public interface AdventureCommandSourceStack extends ForwardingAudience.Single, Identified
An interface applied to CommandSourceStack to allow sending Components.
Since:
4.0.0
  • Method Details

    • identity

      @NotNull default @NotNull Identity identity()
      Specified by:
      identity in interface Identified
    • audience

      @NotNull default @NotNull Audience audience()
      Specified by:
      audience in interface ForwardingAudience.Single
    • sendSuccess

      default void sendSuccess(@NotNull @NotNull 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 Component text)
      Send an error message to the command source.
      Parameters:
      text - The error
      Since:
      4.0.0