Interface IChunkExtent<T extends IChunk>
- All Superinterfaces:
Extent,InputExtent,OutputExtent
- All Known Subinterfaces:
IQueueExtent<T>
- All Known Implementing Classes:
SingleThreadQueueExtent
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault EntitycreateEntity(Location location, BaseEntity entity) Create an entity at the given location.default EntitycreateEntity(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.default BiomeTypegetBiome(BlockVector3 position) Get the biome at the given location.default BiomeTypegetBiomeType(int x, int y, int z) default BlockStategetBlock(int x, int y, int z) default intgetBrightness(int x, int y, int z) default intgetEmittedLight(int x, int y, int z) default BaseBlockgetFullBlock(int x, int y, int z) default intgetOpacity(int x, int y, int z) getOrCreateChunk(int chunkX, int chunkZ) Get the IChunk at a position (and cache it if it's not already)default intgetSkyLight(int x, int y, int z) default voidremoveEntity(int x, int y, int z, UUID uuid) Create an entity at the given location.default booleandefault booleansetBiome(BlockVector3 position, BiomeType biome) Set the biome.default <B extends BlockStateHolder<B>>
booleansetBlock(int x, int y, int z, B state) default voidsetBlockLight(int x, int y, int z, int value) default voidsetSkyLight(int x, int y, int z, int value) default booleantile(int x, int y, int z, FaweCompoundTag tile) Sets a tile/block entity at the given location.Methods inherited from interface com.sk89q.worldedit.extent.Extent
addCaves, addOre, addOres, addPostProcessor, addProcessor, addSchems, apply, apply, cancel, center, commit, contains, contains, countBlocks, countBlocks, disableHistory, disableQueue, enableHistory, enableQueue, generate, getBlockDistribution, getBlockDistributionWithData, getEntities, getEntities, getHighestTerrainBlock, getHighestTerrainBlock, getMaximumPoint, getMaxY, getMinimumPoint, getMinY, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, isWorld, lazyCopy, regenerateChunk, relight, relightBlock, relightSky, replaceBlocks, replaceBlocks, replaceBlocks, setBlocks, setBlocks, setBlocks, spawnResourceMethods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getSkyLightMethods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, setBiome, setBlock, setBlockLight, setHeightMap, setSkyLight, setTile
-
Method Details
-
getOrCreateChunk
Get the IChunk at a position (and cache it if it's not already)- Returns:
- IChunk
-
setBlock
- Specified by:
setBlockin interfaceOutputExtent
-
tile
Description copied from interface:OutputExtentSets a tile/block entity at the given location.- Specified by:
tilein interfaceOutputExtent- Parameters:
x- the x positiony- the y positionz- the z positiontile- the tile/block entity to set- Returns:
trueif the tile/block entity was placed- Throws:
WorldEditException
-
setBiome
- Specified by:
setBiomein interfaceOutputExtent
-
setBiome
Description copied from interface:OutputExtentSet the biome.As implementation varies per Minecraft version, this may set more than this position's biome. On versions prior to 1.15, this will set the entire column. On later versions it will set the 4x4x4 cube.
- Specified by:
setBiomein interfaceOutputExtent- Parameters:
position- the (x, y, z) location to set the biome atbiome- the biome to set to- Returns:
- true if the biome was successfully set (return value may not be accurate)
-
getBlock
- Specified by:
getBlockin interfaceInputExtent
-
getFullBlock
- Specified by:
getFullBlockin interfaceInputExtent
-
getBiomeType
- Specified by:
getBiomeTypein interfaceInputExtent
-
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- Parameters:
position- the (x, y, z) location to check the biome at- Returns:
- the biome at the location
- See Also:
-
setSkyLight
default void setSkyLight(int x, int y, int z, int value) - Specified by:
setSkyLightin interfaceOutputExtent
-
setBlockLight
default void setBlockLight(int x, int y, int z, int value) - Specified by:
setBlockLightin interfaceOutputExtent
-
getSkyLight
default int getSkyLight(int x, int y, int z) - Specified by:
getSkyLightin interfaceInputExtent
-
getEmittedLight
default int getEmittedLight(int x, int y, int z) - Specified by:
getEmittedLightin interfaceInputExtent
-
getBrightness
default int getBrightness(int x, int y, int z) - Specified by:
getBrightnessin interfaceInputExtent
-
getOpacity
default int getOpacity(int x, int y, int z) - Specified by:
getOpacityin interfaceInputExtent
-
createEntity
Description copied from interface:ExtentCreate an entity at the given location.- Specified by:
createEntityin interfaceExtent- 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- 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
-
removeEntity
Description copied from interface:ExtentCreate an entity at the given location.- Specified by:
removeEntityin interfaceExtent- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinateuuid- the unique identifier of the entity
-