Class FlattenedClipboardTransform

java.lang.Object
com.sk89q.worldedit.command.FlattenedClipboardTransform

public class FlattenedClipboardTransform extends Object
Helper class to 'bake' a transform into a clipboard.

This class needs a better name and may need to be made more generic.

See Also:
  • Method Details

    • getTransformedRegion

      public Region getTransformedRegion()
      Get the transformed region.
      Returns:
      the transformed region
    • copyTo

      public Operation copyTo(Extent target)
      Create an operation to copy from the original clipboard to the given extent.
      Parameters:
      target - the target
      Returns:
      the operation
    • transform

      public static FlattenedClipboardTransform transform(Clipboard original, Transform transform)
      Create a new instance to bake the transform with.
      Parameters:
      original - the original clipboard
      transform - the transform
      Returns:
      a builder