Class FaweRegionExtent
java.lang.Object
com.sk89q.worldedit.extent.AbstractDelegateExtent
com.fastasyncworldedit.core.extent.ResettableExtent
com.fastasyncworldedit.core.extent.FaweRegionExtent
- All Implemented Interfaces:
IBatchProcessor,Extent,InputExtent,OutputExtent,Serializable
- Direct Known Subclasses:
HeightBoundExtent,MultiRegionExtent,NullExtent,SingleRegionExtent
- See Also:
-
Field Summary
Fields inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
extent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert this processor into an Extent based processor instead of a queue batch based on.abstract booleancontains(int x, int z) abstract booleancontains(int x, int y, int z) Returns true if the extent contains the given positionfinal booleanfinal booleanReturns true if the extent contains the given positioncreateEntity(Location location, BaseEntity entity) Create an entity at the given location.createEntity(Location location, BaseEntity entity, UUID uuid) Create an entity at the given location, forcing a UUID onto the entity Only use if you are aware of the consequences of forcing a UUID to an entity.getBiome(BlockVector3 position) Get the biome at the given location.getBiomeType(int x, int y, int z) getBlock(int x, int y, int z) getBlock(BlockVector3 position) Get a snapshot of the block at the given location.getFullBlock(int x, int y, int z) getFullBlock(BlockVector3 position) Get an immutable snapshot of the block at the given location.abstract Collection<Region> getScope()Default to CUSTOM ProcessorScope as we want custom processors people add to be before we write history, but after FAWE does it's own stuff.booleanisGlobal()boolean<B extends BlockStateHolder<B>>
booleansetBlock(int x, int y, int z, B block) Methods inherited from class com.fastasyncworldedit.core.extent.ResettableExtent
init, setExtent, setOriginMethods inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
addPostProcessor, addProcessor, apply, cancel, commit, commitBefore, countBlocks, countBlocks, disableHistory, disableQueue, enableQueue, fullySupports3DBiomes, getBlockDistribution, getBlockDistributionWithData, getBrightness, getEmittedLight, getEntities, getEntities, getExtent, getMaximumPoint, getMaxY, getMinimumPoint, getMinY, getSkyLight, isQueueEnabled, isWorld, relight, relightBlock, relightSky, removeEntity, replaceBlocks, replaceBlocks, replaceBlocks, setBiome, setBlock, setBlockLight, setBlocks, setBlocks, setBlocks, setChangeSet, setSkyLight, tile, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extent.Extent
addCaves, addOre, addOres, addSchems, apply, center, enableHistory, generate, getHighestTerrainBlock, getHighestTerrainBlock, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, lazyCopy, regenerateChunk, spawnResourceMethods inherited from interface com.fastasyncworldedit.core.queue.IBatchProcessor
flush, join, joinPost, postProcess, postProcessSet, processGet, processGet, processSet, remove, trimNBT, trimNBT, trimYMethods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBrightness, getEmittedLight, getHeightMap, getOpacity, getOpacity, getSkyLightMethods inherited from interface com.sk89q.worldedit.extent.OutputExtent
setBiome, setBlockLight, setHeightMap, setSkyLight, setTile
-
Constructor Details
-
FaweRegionExtent
Create a new instance.- Parameters:
extent- the extent
-
-
Method Details
-
contains
public abstract boolean contains(int x, int y, int z) Description copied from interface:ExtentReturns true if the extent contains the given position -
contains
public abstract boolean contains(int x, int z) -
getRegions
-
isGlobal
public boolean isGlobal() -
construct
Description copied from interface:IBatchProcessorConvert this processor into an Extent based processor instead of a queue batch based on.- Specified by:
constructin interfaceIBatchProcessor
-
contains
Description copied from interface:ExtentReturns true if the extent contains the given position -
contains
-
setBlock
public <B extends BlockStateHolder<B>> boolean setBlock(int x, int y, int z, B block) throws WorldEditException - Specified by:
setBlockin interfaceOutputExtent- Overrides:
setBlockin classAbstractDelegateExtent- Throws:
WorldEditException
-
setBiome
- Specified by:
setBiomein interfaceOutputExtent- Overrides:
setBiomein classAbstractDelegateExtent
-
getBiome
Description copied from interface:InputExtentGet 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.
- Specified by:
getBiomein interfaceInputExtent- Overrides:
getBiomein classAbstractDelegateExtent- Parameters:
position- the (x, y, z) location to check the biome at- Returns:
- the biome at the location
- See Also:
-
getBiomeType
- Specified by:
getBiomeTypein interfaceInputExtent- Overrides:
getBiomeTypein classAbstractDelegateExtent
-
getFullBlock
Description copied from interface:InputExtentGet an immutable snapshot of the block at the given location.- Specified by:
getFullBlockin interfaceInputExtent- Overrides:
getFullBlockin classAbstractDelegateExtent- Parameters:
position- position of the block- Returns:
- the block
-
getFullBlock
- Specified by:
getFullBlockin interfaceInputExtent- Overrides:
getFullBlockin classAbstractDelegateExtent
-
getBlock
Description copied from interface:InputExtentGet a snapshot of the block at the given location.If the given position is out of the bounds of the extent, then the behavior is undefined (an air block could be returned). However,
nullshould not be returned.The returned block is immutable and is a snapshot of the block at the time of call. It has no position attached to it, so it could be reused in
Patterns and so on.- Specified by:
getBlockin interfaceInputExtent- Overrides:
getBlockin classAbstractDelegateExtent- Parameters:
position- position of the block- Returns:
- the block
-
getBlock
- Specified by:
getBlockin interfaceInputExtent- Overrides:
getBlockin classAbstractDelegateExtent
-
createEntity
Description copied from interface:ExtentCreate an entity at the given location.- Specified by:
createEntityin interfaceExtent- Overrides:
createEntityin classAbstractDelegateExtent- Parameters:
location- the locationentity- the entity- Returns:
- a reference to the created entity, or null if the entity could not be created
-
createEntity
Description copied from interface:ExtentCreate an entity at the given location, forcing a UUID onto the entity Only use if you are aware of the consequences of forcing a UUID to an entity.- Specified by:
createEntityin interfaceExtent- Overrides:
createEntityin classAbstractDelegateExtent- Parameters:
location- the locationentity- the entityuuid- UUID to force the entity to have- Returns:
- a reference to the created entity, or null if the entity could not be created
-
getScope
Description copied from interface:IBatchProcessorDefault to CUSTOM ProcessorScope as we want custom processors people add to be before we write history, but after FAWE does it's own stuff.- Specified by:
getScopein interfaceIBatchProcessor
-