Interface IChunkExtent<T extends IChunk>
- All Superinterfaces:
Extent
,InputExtent
,OutputExtent
- All Known Subinterfaces:
IQueueExtent<T>
- All Known Implementing Classes:
SingleThreadQueueExtent
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Entity
createEntity
(Location location, BaseEntity entity) Create an entity at the given location.default Entity
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.default BiomeType
getBiome
(BlockVector3 position) Get the biome at the given location.default BiomeType
getBiomeType
(int x, int y, int z) default BlockState
getBlock
(int x, int y, int z) default int
getBrightness
(int x, int y, int z) default int
getEmittedLight
(int x, int y, int z) default BaseBlock
getFullBlock
(int x, int y, int z) default int
getOpacity
(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 int
getSkyLight
(int x, int y, int z) default void
removeEntity
(int x, int y, int z, UUID uuid) Create an entity at the given location.default boolean
default boolean
setBiome
(BlockVector3 position, BiomeType biome) Set the biome.default <B extends BlockStateHolder<B>>
booleansetBlock
(int x, int y, int z, B state) default void
setBlockLight
(int x, int y, int z, int value) default void
setSkyLight
(int x, int y, int z, int value) default boolean
tile
(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, spawnResource
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getSkyLight
Methods 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:
setBlock
in interfaceOutputExtent
-
tile
Description copied from interface:OutputExtent
Sets a tile/block entity at the given location.- Specified by:
tile
in interfaceOutputExtent
- Parameters:
x
- the x positiony
- the y positionz
- the z positiontile
- the tile/block entity to set- Returns:
true
if the tile/block entity was placed- Throws:
WorldEditException
-
setBiome
- Specified by:
setBiome
in interfaceOutputExtent
-
setBiome
Description copied from interface:OutputExtent
Set 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:
setBiome
in 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:
getBlock
in interfaceInputExtent
-
getFullBlock
- Specified by:
getFullBlock
in interfaceInputExtent
-
getBiomeType
- Specified by:
getBiomeType
in interfaceInputExtent
-
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.
- Specified by:
getBiome
in 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:
setSkyLight
in interfaceOutputExtent
-
setBlockLight
default void setBlockLight(int x, int y, int z, int value) - Specified by:
setBlockLight
in interfaceOutputExtent
-
getSkyLight
default int getSkyLight(int x, int y, int z) - Specified by:
getSkyLight
in interfaceInputExtent
-
getEmittedLight
default int getEmittedLight(int x, int y, int z) - Specified by:
getEmittedLight
in interfaceInputExtent
-
getBrightness
default int getBrightness(int x, int y, int z) - Specified by:
getBrightness
in interfaceInputExtent
-
getOpacity
default int getOpacity(int x, int y, int z) - Specified by:
getOpacity
in interfaceInputExtent
-
createEntity
Description copied from interface:Extent
Create an entity at the given location.- Specified by:
createEntity
in 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:Extent
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.- Specified by:
createEntity
in 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:Extent
Create an entity at the given location.- Specified by:
removeEntity
in interfaceExtent
- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinateuuid
- the unique identifier of the entity
-