Interface Clipboard
- All Superinterfaces:
Extent
,InputExtent
,OutputExtent
- All Known Implementing Classes:
BlockArrayClipboard
Specifies an object that implements something suitable as a "clipboard."
-
Method Summary
Modifier and TypeMethodDescriptionGet the dimensions of the copy, which is at minimum (1, 1, 1).Get the origin point from which the copy was made from.Get the bounding region of this extent.default boolean
Returns true if the clipboard has biome data.void
setOrigin
(BlockVector3 origin) Set the origin point from which the copy was made from.Methods inherited from interface com.sk89q.worldedit.extent.Extent
createEntity, getEntities, getEntities, getMaximumPoint, getMinimumPoint
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBiome, getBlock, getFullBlock
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
commit, fullySupports3DBiomes, setBiome, setBiome, setBlock
-
Method Details
-
getRegion
Region getRegion()Get the bounding region of this extent.Implementations should return a copy of the region.
- Returns:
- the bounding region
-
getDimensions
BlockVector3 getDimensions()Get the dimensions of the copy, which is at minimum (1, 1, 1).- Returns:
- the dimensions
-
getOrigin
BlockVector3 getOrigin()Get the origin point from which the copy was made from.- Returns:
- the origin
-
setOrigin
Set the origin point from which the copy was made from.- Parameters:
origin
- the origin
-
hasBiomes
default boolean hasBiomes()Returns true if the clipboard has biome data. This can be checked sinceInputExtent.getBiome(BlockVector3)
strongly suggests returningBiomeTypes.OCEAN
instead ofnull
if biomes aren't present.- Returns:
- true if the clipboard has biome data set
-