Class ClipboardHolder

java.lang.Object
com.sk89q.worldedit.session.ClipboardHolder

public class ClipboardHolder extends Object
Holds the clipboard and the current transform on the clipboard.
  • Constructor Details

    • ClipboardHolder

      public ClipboardHolder(Clipboard clipboard)
      Create a new instance with the given clipboard.
      Parameters:
      clipboard - the clipboard
  • Method Details

    • getClipboard

      public Clipboard getClipboard()
      Get the clipboard.

      If there is a transformation applied, the returned clipboard will not contain its effect.

      Returns:
      the clipboard
    • setTransform

      public void setTransform(Transform transform)
      Set the transform.
      Parameters:
      transform - the transform
    • getTransform

      public Transform getTransform()
      Get the transform.
      Returns:
      the transform
    • createPaste

      public PasteBuilder createPaste(Extent targetExtent)
      Create a builder for an operation to paste this clipboard.
      Returns:
      a builder