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.filter
(RegionFunction function) ignoreAirBlocks
(boolean ignoreAirBlocks) Set whether air 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
-
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
-
filter
-
build
Build the operation.- Returns:
- the operation
-