Interface SniperCommander

All Known Implementing Classes:
Sniper, SniperSender

public interface SniperCommander
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a parser context from the sniper commander.
    Return the command sender
    default void
    print(com.sk89q.worldedit.util.formatting.text.Component component)
    Sends a component to a sniper.
    void
    print(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix)
    Sends a component to a sniper.
  • Method Details

    • getCommandSender

      CommandSender getCommandSender()
      Return the command sender
      Returns:
      the command sender
      Since:
      3.0.0
    • createParserContext

      default ParserContext createParserContext()
      Create a parser context from the sniper commander.
      Returns:
      the parser context
      Since:
      3.0.0
    • print

      default void print(com.sk89q.worldedit.util.formatting.text.Component component)
      Sends a component to a sniper. This method adds the prefix and handle translations.
      Parameters:
      component - component
      Since:
      2.7.0
    • print

      void print(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix)
      Sends a component to a sniper. This method potentially adds the prefix and handle translations.
      Parameters:
      component - component
      prefix - prefix
      Since:
      2.7.0