Class WorldCopyClipboard
java.lang.Object
com.fastasyncworldedit.core.extent.clipboard.SimpleClipboard
com.fastasyncworldedit.core.extent.clipboard.ReadOnlyClipboard
com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard
- All Implemented Interfaces:
Clipboard
,Extent
,InputExtent
,OutputExtent
,Closeable
,Flushable
,AutoCloseable
,Iterable<BlockVector3>
-
Field Summary
Fields inherited from class com.fastasyncworldedit.core.extent.clipboard.ReadOnlyClipboard
region
Fields inherited from class com.fastasyncworldedit.core.extent.clipboard.SimpleClipboard
offset
-
Constructor Summary
ConstructorDescriptionWorldCopyClipboard
(Supplier<Extent> supplier, Region region) WorldCopyClipboard
(Supplier<Extent> supplier, Region region, boolean hasEntities, boolean hasBiomes) -
Method Summary
Modifier and TypeMethodDescriptiongetBiome
(BlockVector3 position) Get the biome at the given location.getBiomeType
(int x, int y, int z) getBlock
(int x, int y, int z) Get a list of all entities.getFullBlock
(int x, int y, int z) boolean
Returns true if the clipboard has biome data.Methods inherited from class com.fastasyncworldedit.core.extent.clipboard.ReadOnlyClipboard
createEntity, createEntity, getMaximumPoint, getMinimumPoint, getRegion, of, of, of, of, of, of, removeEntity, setBiome, setBiome, setBlock, tile
Methods inherited from class com.fastasyncworldedit.core.extent.clipboard.SimpleClipboard
getArea, getDimensions, getHeight, getLength, getOrigin, getVolume, getWidth, setOffset, setOrigin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extent.clipboard.Clipboard
apply, close, flush, getURI, iterator, iterator, iterator2d, paste, paste, paste, paste, paste, paste, save, save, transform
Methods inherited from interface com.sk89q.worldedit.extent.Extent
addCaves, addOre, addOres, addPostProcessor, addProcessor, addSchems, apply, cancel, center, commit, contains, contains, countBlocks, countBlocks, disableHistory, disableQueue, enableHistory, enableQueue, generate, getBlockDistribution, getBlockDistributionWithData, getEntities, getHighestTerrainBlock, getHighestTerrainBlock, getMaxY, getMinY, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, isWorld, lazyCopy, regenerateChunk, relight, relightBlock, relightSky, removeEntity, replaceBlocks, replaceBlocks, replaceBlocks, setBlocks, setBlocks, setBlocks, spawnResource
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getOpacity, getSkyLight, getSkyLight
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, setBiome, setBlock, setBlockLight, setBlockLight, setHeightMap, setSkyLight, setSkyLight, setTile
-
Constructor Details
-
WorldCopyClipboard
-
WorldCopyClipboard
-
-
Method Details
-
getExtent
-
getFullBlock
-
getBlock
-
getBiomeType
-
getBiome
Description copied from interface:InputExtent
Get the biome at the given location.If there is no biome available, then the ocean biome should be returned.
As implementation varies per Minecraft version, this may not exactly get this positions biome. On versions prior to 1.15, this will get the entire column. On later versions it will get the 4x4x4 cube's biome.
- Parameters:
position
- the (x, y, z) location to check the biome at- Returns:
- the biome at the location
- See Also:
-
getEntities
Description copied from interface:Extent
Get a list of all entities.If the extent is not wholly loaded (i.e. a world being simulated in the game will not have every chunk loaded), then this list may not be incomplete.
- Specified by:
getEntities
in interfaceExtent
- Specified by:
getEntities
in classReadOnlyClipboard
- Returns:
- a list of entities
-
hasBiomes
public boolean hasBiomes()Description copied from interface:Clipboard
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
-