Class ActorCallbackPaste

java.lang.Object
com.sk89q.worldedit.util.paste.ActorCallbackPaste

public final class ActorCallbackPaste extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    pastebin(Supervisor supervisor, Actor sender, String content, com.sk89q.worldedit.util.formatting.text.TranslatableComponent.Builder successMessage)
    Submit data to a pastebin service and inform the sender of success or failure.
    static void
    pastebin(Supervisor supervisor, Actor sender, String content, PasteMetadata pasteMetadata, com.sk89q.worldedit.util.formatting.text.TranslatableComponent.Builder successMessage)
    Submit data to a pastebin service and inform the sender of success or failure.
    static void
    pastebin(Supervisor supervisor, Actor sender, String content, String successMessage)
    Deprecated.
    Use the Component-based version

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • pastebin

      @Deprecated public static void pastebin(Supervisor supervisor, Actor sender, String content, String successMessage)
      Deprecated.
      Use the Component-based version
      Submit data to a pastebin service and inform the sender of success or failure.
      Parameters:
      supervisor - The supervisor instance
      sender - The sender
      content - The content
      successMessage - The message, formatted with String.format(String, Object...) on success
    • pastebin

      public static void pastebin(Supervisor supervisor, Actor sender, String content, com.sk89q.worldedit.util.formatting.text.TranslatableComponent.Builder successMessage)
      Submit data to a pastebin service and inform the sender of success or failure.
      Parameters:
      supervisor - The supervisor instance
      sender - The sender
      content - The content
      successMessage - The message builder, given the URL as an arg
    • pastebin

      public static void pastebin(Supervisor supervisor, Actor sender, String content, PasteMetadata pasteMetadata, com.sk89q.worldedit.util.formatting.text.TranslatableComponent.Builder successMessage)
      Submit data to a pastebin service and inform the sender of success or failure.
      Parameters:
      supervisor - The supervisor instance
      sender - The sender
      content - The content
      pasteMetadata - The paste metadata
      successMessage - The message builder, given the URL as an arg