Interface OutputExtent
- All Known Subinterfaces:
Clipboard,Extent,IChunk,IChunkExtent<T>,IChunkSet,IQueueChunk<T>,IQueueExtent<T>,ReorderingExtent,SimpleWorld,World
- All Known Implementing Classes:
AbstractBufferingExtent,AbstractDelegateExtent,AbstractExtentFilterBlock,AbstractFilterBlock,AbstractSingleFilterBlock,AbstractWorld,ArrayFilterBlock,BiomeQuirkExtent,BitSetBlocks,BlockArrayClipboard,BlockBagExtent,BlockChangeLimiter,BlockQuirkExtent,BlockTransformExtent,BlockTranslateExtent,ChangeSetExtent,CharFilterBlock,CharSetBlocks,ChunkBatchingExtent,ChunkFilterBlock,ChunkHolder,ChunkLoadingExtent,CPUOptimizedClipboard,DataValidatorExtent,DisallowedBlocksExtent,DiskOptimizedClipboard,EditSession,EmptyClipboard,ExtentBatchProcessorHolder,ExtentBuffer,ExtentFilterBlock,ExtentHeightCacher,FaweRegionExtent,FilterBlock,ForgetfulExtentBuffer,FuzzyRegionSelector,HeightBoundExtent,HistoryExtent,LastAccessExtentCache,LimitExtent,Linear3DTransform,LinearClipboard,LinearTransform,MaskingExtent,MemoryCheckingExtent,MemoryOptimizedClipboard,MultiRegionExtent,MultiStageReorder,MultiTransform,NullChunk,NullExtent,NullExtent,NullWorld,OffsetTransform,OncePerChunkExtent,ParallelQueueExtent,PassthroughExtent,PatternTransform,PlacementStateProcessor,PositionTransformExtent,ProcessedWEExtent,RandomOffsetTransform,RandomTransform,ReadOnlyClipboard,RequestExtent,ResettableExtent,ScaleTransform,SelectTransform,SideEffectExtent,SimpleClipboard,SingleFilterBlock,SingleRegionExtent,SingleThreadQueueExtent,SlowExtent,SourceMaskExtent,StripNBTExtent,SupplyingExtent,SurvivalModeExtent,TemporalExtent,ThreadUnsafeCharBlocks,TracingExtent,TransformExtent,VectorizedCharFilterBlock,WatchdogTickingExtent,WorldCopyClipboard,WorldWrapper
-
Method Summary
Modifier and TypeMethodDescriptioncommit()Return anOperationthat should be called to tie up loose ends (such as to commit changes in a buffer).default booleanCheck if this extent fully supports 3D biomes.default booleandefault booleansetBiome(BlockVector2 position, BiomeType biome) Deprecated.default booleansetBiome(BlockVector3 position, BiomeType biome) Set the biome.default <B extends BlockStateHolder<B>>
booleansetBlock(int x, int y, int z, B block) default <T extends BlockStateHolder<T>>
booleansetBlock(BlockVector3 position, T block) Deprecated.It is recommended that you usesetBlock(int, int, int, BlockStateHolder)in FAWEdefault voidsetBlockLight(int x, int y, int z, int value) default voidsetBlockLight(BlockVector3 position, int value) Set the light value.default voidsetHeightMap(HeightMapType type, int[] heightMap) default voidsetSkyLight(int x, int y, int z, int value) default voidsetSkyLight(BlockVector3 position, int value) Set the sky light value.default booleansetTile(int x, int y, int z, CompoundTag tile) Deprecated, for removal: This API element is subject to removal in a future version.usetile(int, int, int, FaweCompoundTag)insteadbooleantile(int x, int y, int z, FaweCompoundTag tile) Sets a tile/block entity at the given location.
-
Method Details
-
setBlock
@Deprecated default <T extends BlockStateHolder<T>> boolean setBlock(BlockVector3 position, T block) throws WorldEditException Deprecated.It is recommended that you usesetBlock(int, int, int, BlockStateHolder)in FAWEChange the block at the given location to the given block. The operation may not tie the givenBlockStateHolderto the world, so future changes to theBlockStateHolderdo 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.
- Parameters:
position- 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
-
setBlock
default <B extends BlockStateHolder<B>> boolean setBlock(int x, int y, int z, B block) throws WorldEditException - Throws:
WorldEditException
-
setTile
@Deprecated(forRemoval=true, since="2.11.2") default boolean setTile(int x, int y, int z, CompoundTag tile) throws WorldEditException Deprecated, for removal: This API element is subject to removal in a future version.usetile(int, int, int, FaweCompoundTag)instead- Throws:
WorldEditException
-
tile
Sets a tile/block entity at the given location.- 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- Since:
- 2.11.2
-
fullySupports3DBiomes
default boolean fullySupports3DBiomes()Check if this extent fully supports 3D biomes.If
false, the extent only visually reads biomes fromy = 0. The biomes will still be set in 3D, but the client will only see the one aty = 0. It is up to the caller to determine if they want to set that biome instead, or simply warn the actor.- Returns:
- if the extent fully supports 3D biomes
-
setBiome
Deprecated.Biomes in Minecraft are 3D now, usesetBiome(BlockVector3, BiomeType)Set the biome.- Parameters:
position- the (x, 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)
-
setBiome
@NonAbstractForCompatibility(delegateName="setBiome", delegateParams={int.class,int.class,int.class,BiomeType.class}) default boolean setBiome(int x, int y, int z, BiomeType biome) -
setBiome
@NonAbstractForCompatibility(delegateName="setBiome", delegateParams={BlockVector3.class,BiomeType.class}) default boolean setBiome(BlockVector3 position, BiomeType biome) 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.
- 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)
-
setBlockLight
Set the light value.- Parameters:
position- position of the blockvalue- light level to set
-
setBlockLight
default void setBlockLight(int x, int y, int z, int value) -
setSkyLight
Set the sky light value.- Parameters:
position- position of the blockvalue- light level to set
-
setSkyLight
default void setSkyLight(int x, int y, int z, int value) -
setHeightMap
-
commit
Return anOperationthat should be called to tie up loose ends (such as to commit changes in a buffer).- Returns:
- an operation or null if there is none to execute
-
setBiome(BlockVector3, BiomeType)