public interface Clipboard extends Extent
Modifier and Type | Method and Description |
---|---|
BlockVector3 |
getDimensions()
Get the dimensions of the copy, which is at minimum (1, 1, 1).
|
BlockVector3 |
getOrigin()
Get the origin point from which the copy was made from.
|
Region |
getRegion()
Get the bounding region of this extent.
|
default boolean |
hasBiomes()
Returns true if the clipboard has biome data.
|
void |
setOrigin(BlockVector3 origin)
Set the origin point from which the copy was made from.
|
createEntity, getEntities, getEntities, getMaximumPoint, getMinimumPoint
getBiome, getBlock, getFullBlock
commit, setBiome, setBlock
Region getRegion()
Implementations should return a copy of the region.
BlockVector3 getDimensions()
BlockVector3 getOrigin()
void setOrigin(BlockVector3 origin)
origin
- the origindefault boolean hasBiomes()
InputExtent.getBiome(BlockVector2)
strongly suggests returning BiomeTypes.OCEAN
instead of null
if biomes aren't present. However, it might not be desired to set areas to ocean if the clipboard is defaulting
to ocean, instead of having biomes explicitly set.