Package com.sk89q.worldedit.session
Class ClipboardHolder
java.lang.Object
com.sk89q.worldedit.session.ClipboardHolder
Holds the clipboard and the current transform on the clipboard.
-
Constructor Summary
ConstructorsConstructorDescriptionClipboardHolder
(Clipboard clipboard) Create a new instance with the given clipboard. -
Method Summary
Modifier and TypeMethodDescriptioncreatePaste
(Extent targetExtent) Create a builder for an operation to paste this clipboard.Get the clipboard.Get the transform.void
setTransform
(Transform transform) Set the transform.
-
Constructor Details
-
ClipboardHolder
Create a new instance with the given clipboard.- Parameters:
clipboard
- the clipboard
-
-
Method Details
-
getClipboard
Get the clipboard.If there is a transformation applied, the returned clipboard will not contain its effect.
- Returns:
- the clipboard
-
setTransform
Set the transform.- Parameters:
transform
- the transform
-
getTransform
Get the transform.- Returns:
- the transform
-
createPaste
Create a builder for an operation to paste this clipboard.- Returns:
- a builder
-