Package com.sk89q.worldedit.session
Class PasteBuilder
java.lang.Object
com.sk89q.worldedit.session.PasteBuilder
Builds an operation to paste the contents of a clipboard.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the operation.copyBiomes
(boolean copyBiomes) Set whether the copy should include source biomes (if available).copyEntities
(boolean copyEntities) Set whether the copy should include source entities.ignoreAirBlocks
(boolean ignoreAirBlocks) Set whether air blocks in the source are skipped over when pasting.ignoreStructureVoidBlocks
(boolean ignoreStructureVoidBlocks) Set whether structure void blocks in the source are skipped over when pasting.maskSource
(Mask sourceMask) Set a custom mask of blocks to ignore from the source.to
(BlockVector3 to) Set the target location.
-
Method Details
-
to
Set the target location.- Parameters:
to
- the target location- Returns:
- this builder instance
-
maskSource
Set a custom mask of blocks to ignore from the source. This provides a more flexible alternative toignoreAirBlocks(boolean)
, for example one might want to ignore structure void if copying a Minecraft Structure, etc.- Parameters:
sourceMask
- the mask for the source- Returns:
- this builder instance
-
ignoreAirBlocks
Set whether air blocks in the source are skipped over when pasting.- Returns:
- this builder instance
-
ignoreStructureVoidBlocks
Set whether structure void blocks in the source are skipped over when pasting.This currently defaults to false. In the next major version this will default to true, to better align to how Minecraft intends these blocks to function. It's recommended to set this if the value of this matters for you, even if it currently matches the default.
- Parameters:
ignoreStructureVoidBlocks
- value to set it to- Returns:
- This builder instance
-
copyEntities
Set whether the copy should include source entities. Note that this is true by default for legacy reasons.- Parameters:
copyEntities
- if entities should be copied- Returns:
- this builder instance
-
copyBiomes
Set whether the copy should include source biomes (if available).- Parameters:
copyBiomes
- if biomes should be copied- Returns:
- this builder instance
-
build
Build the operation.- Returns:
- the operation
-