Class TransformExtent
java.lang.Object
com.sk89q.worldedit.extent.AbstractDelegateExtent
com.fastasyncworldedit.core.extent.ResettableExtent
com.sk89q.worldedit.extent.transform.BlockTransformExtent
com.fastasyncworldedit.core.extent.TransformExtent
- All Implemented Interfaces:
Extent
,InputExtent
,OutputExtent
,Serializable
- See Also:
-
Field Summary
Fields inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
extent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBiomeType
(int x, int y, int z) getBlock
(int x, int y, int z) getFullBlock
(BlockVector3 position) Get an immutable snapshot of the block at the given location.Get the maximum point in the extent.Get the minimum point in the extent.getPos
(int x, int y, int z) getPos
(BlockVector3 pos) boolean
<T extends BlockStateHolder<T>>
booleansetBlock
(int x, int y, int z, T block) <B extends BlockStateHolder<B>>
booleansetBlock
(BlockVector3 location, B block) Change the block at the given location to the given block.void
setOrigin
(BlockVector3 pos) Methods inherited from class com.sk89q.worldedit.extent.transform.BlockTransformExtent
getBlock, getFullBlock, getTransform, setTransform, transform, transform, transform, transformInverse
Methods inherited from class com.fastasyncworldedit.core.extent.ResettableExtent
init
Methods inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
addPostProcessor, addProcessor, cancel, commit, commitBefore, createEntity, disableHistory, disableQueue, enableQueue, fullySupports3DBiomes, getBiome, getBrightness, getEmittedLight, getEntities, getEntities, getExtent, getMaxY, getMinY, getSkyLight, isQueueEnabled, relight, relightBlock, relightSky, removeEntity, setBiome, setBlockLight, setChangeSet, setSkyLight, setTile, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extent.Extent
addCaves, addOre, addOres, addSchems, apply, apply, center, contains, contains, countBlocks, countBlocks, enableHistory, generate, getBlockDistribution, getBlockDistributionWithData, getHighestTerrainBlock, getHighestTerrainBlock, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isWorld, lazyCopy, regenerateChunk, replaceBlocks, replaceBlocks, replaceBlocks, setBlocks, setBlocks, setBlocks, spawnResource
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBrightness, getEmittedLight, getHeightMap, getOpacity, getOpacity, getSkyLight
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
setBiome, setBlockLight, setHeightMap, setSkyLight
-
Constructor Details
-
TransformExtent
-
-
Method Details
-
setExtent
- Overrides:
setExtent
in classResettableExtent
-
getMinimumPoint
Description copied from interface:Extent
Get the minimum point in the extent.If the extent is unbounded, then a large (negative) value may be returned.
- Specified by:
getMinimumPoint
in interfaceExtent
- Overrides:
getMinimumPoint
in classAbstractDelegateExtent
- Returns:
- the minimum point
-
getMaximumPoint
Description copied from interface:Extent
Get the maximum point in the extent.If the extent is unbounded, then a large (positive) value may be returned.
- Specified by:
getMaximumPoint
in interfaceExtent
- Overrides:
getMaximumPoint
in classAbstractDelegateExtent
- Returns:
- the maximum point
-
setOrigin
- Overrides:
setOrigin
in classResettableExtent
-
getPos
-
getPos
-
getBlock
- Specified by:
getBlock
in interfaceInputExtent
- Overrides:
getBlock
in classBlockTransformExtent
-
getFullBlock
Description copied from interface:InputExtent
Get an immutable snapshot of the block at the given location.- Specified by:
getFullBlock
in interfaceInputExtent
- Overrides:
getFullBlock
in classBlockTransformExtent
- Parameters:
position
- position of the block- Returns:
- the block
-
getBiomeType
- Specified by:
getBiomeType
in interfaceInputExtent
- Overrides:
getBiomeType
in classAbstractDelegateExtent
-
setBlock
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block) throws WorldEditException - Specified by:
setBlock
in interfaceOutputExtent
- Overrides:
setBlock
in classBlockTransformExtent
- Throws:
WorldEditException
-
setBlock
public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 location, B block) throws WorldEditException Description copied from interface:OutputExtent
Change the block at the given location to the given block. The operation may not tie the givenBlockStateHolder
to the world, so future changes to theBlockStateHolder
do not affect the world until this method is called again.The return value of this method indicates whether the change was probably successful. It may not be successful if, for example, the location is out of the bounds of the extent. It may be unsuccessful if the block passed is the same as the one in the world. However, the return value is only an estimation and it may be incorrect, but it could be used to count, for example, the approximate number of changes.
- Specified by:
setBlock
in interfaceOutputExtent
- Overrides:
setBlock
in classBlockTransformExtent
- Parameters:
location
- position of the blockblock
- block to set- Returns:
- true if the block was successfully set (return value may not be accurate)
- Throws:
WorldEditException
- thrown on an error
-
setBiome
- Specified by:
setBiome
in interfaceOutputExtent
- Overrides:
setBiome
in classAbstractDelegateExtent
-