Class CharFilterBlock
java.lang.Object
com.sk89q.worldedit.math.BlockVector3
com.fastasyncworldedit.core.extent.filter.block.FilterBlock
com.fastasyncworldedit.core.extent.filter.block.AbstractExtentFilterBlock
com.fastasyncworldedit.core.extent.filter.block.ChunkFilterBlock
com.fastasyncworldedit.core.extent.filter.block.CharFilterBlock
- All Implemented Interfaces:
TileEntityBlock
,Extent
,InputExtent
,OutputExtent
,NbtValued
-
Field Summary
Fields inherited from class com.sk89q.worldedit.math.BlockVector3
ONE, UNIT_MINUS_X, UNIT_MINUS_Y, UNIT_MINUS_Z, UNIT_X, UNIT_Y, UNIT_Z, ZERO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Filter everything in the layer.void
Filter everything between y layers.void
Filter a single block.void
Filter a cuboid region.final void
Filter with a region.void
flood
(IChunkGet iget, IChunkSet iset, int layer, Flood flood, FilterBlockMask mask) getBiomeType
(int x, int y, int z) final BlockState
getBlock()
final BlockState
final BlockState
final BlockState
final BlockState
final BlockState
getBlockRelativeY
(int y) final BlockState
final BlockState
final int
final int
final BaseBlock
final int
final int
final int
final CompoundTag
Get the object's NBT data (tile entity data).final int
final char
char
getOrdinalChar
(Extent orDefault) final int
getX()
Get the X coordinate.final int
getY()
Get the Y coordinate.final int
getZ()
Get the Z coordinate.boolean
Returns whether the block contains NBT data.final ChunkFilterBlock
initChunk
(int chunkX, int chunkZ) Initialize with chunk coordinates.final ChunkFilterBlock
Initialize a chunk layer.boolean
boolean
setBiome
(BlockVector3 position, BiomeType biome) Set the biome.void
<T extends BlockStateHolder<T>>
booleansetBlock
(int x, int y, int z, T block) void
setBlock
(BlockState state) void
setFullBlock
(BaseBlock block) void
setNbtData
(CompoundTag tag) Set the object's NBT data (tile entity data).void
setOrdinal
(int ordinal) Methods inherited from class com.fastasyncworldedit.core.extent.filter.block.ChunkFilterBlock
filter, filter
Methods inherited from class com.fastasyncworldedit.core.extent.filter.block.AbstractExtentFilterBlock
getExtent
Methods inherited from class com.fastasyncworldedit.core.extent.filter.block.FilterBlock
getBiome, getBlock, getBlock, getFullBlock, getFullBlock, getMaximumPoint, getMinimumPoint, getNbtData, getOrdinal, getOrdinalBelow, getStateAbove, getStateRelativeY, setBlock, setFullBlock, setOrdinal, setTile
Methods inherited from class com.sk89q.worldedit.math.BlockVector3
abs, add, add, add, at, at, ceil, checkLongPackable, clampY, containedWithin, cross, distance, distanceSq, divide, divide, divide, dot, equals, equals, floor, fromLongPackedForm, getBlockX, getBlockY, getBlockZ, getMaximum, getMinimum, hashCode, isLongPackable, length, lengthSq, multiply, multiply, multiply, multiply, mutX, mutX, mutY, mutY, mutZ, mutZ, normalize, plus, round, setComponents, setComponents, shl, shl, shr, shr, sortByCoordsYzx, subtract, subtract, subtract, toBlockVector2, toImmutable, toLongPackedForm, toParserString, toPitch, toString, toVector3, toYaw, transform2D, withX, withY, withZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extent.Extent
addCaves, addOre, addOres, addPostProcessor, addProcessor, addSchems, apply, apply, cancel, center, commit, contains, contains, countBlocks, countBlocks, createEntity, disableHistory, disableQueue, enableHistory, enableQueue, generate, getBlockDistribution, getBlockDistributionWithData, getEntities, getEntities, getHighestTerrainBlock, getHighestTerrainBlock, getMaxY, getMinY, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, isWorld, lazyCopy, regenerateChunk, relight, relightBlock, relightSky, removeEntity, replaceBlocks, replaceBlocks, replaceBlocks, setBlocks, setBlocks, setBlocks, spawnResource
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getOpacity, getSkyLight, getSkyLight
Methods inherited from interface com.sk89q.worldedit.world.NbtValued
getNbt, getNbtReference, setNbt, setNbtReference
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, setBiome, setBlock, setBlockLight, setBlockLight, setHeightMap, setSkyLight, setSkyLight
Methods inherited from interface com.sk89q.worldedit.blocks.TileEntityBlock
getNbtId
-
Constructor Details
-
CharFilterBlock
-
-
Method Details
-
initChunk
Description copied from class:ChunkFilterBlock
Initialize with chunk coordinates. The layer must also be initialized.- Specified by:
initChunk
in classChunkFilterBlock
-
initLayer
Description copied from class:ChunkFilterBlock
Initialize a chunk layer. the Chunk coordinates need to be initialized first.- Specified by:
initLayer
in classChunkFilterBlock
-
flood
- Specified by:
flood
in classChunkFilterBlock
-
filter
Description copied from class:ChunkFilterBlock
Filter a single block.- Specified by:
filter
in classChunkFilterBlock
-
filter
Description copied from class:ChunkFilterBlock
Filter everything between y layers.- Specified by:
filter
in classChunkFilterBlock
-
filter
Description copied from class:ChunkFilterBlock
Filter a cuboid region.- Specified by:
filter
in classChunkFilterBlock
-
filter
Description copied from class:ChunkFilterBlock
Filter with a region.- Specified by:
filter
in classChunkFilterBlock
-
filter
Description copied from class:ChunkFilterBlock
Filter everything in the layer.- Specified by:
filter
in classChunkFilterBlock
-
setBiome
- Overrides:
setBiome
in classFilterBlock
-
getX
public final int getX()Description copied from class:BlockVector3
Get the X coordinate.- Specified by:
getX
in classFilterBlock
- Returns:
- the x coordinate
-
getY
public final int getY()Description copied from class:BlockVector3
Get the Y coordinate.- Specified by:
getY
in classFilterBlock
- Returns:
- the y coordinate
-
getZ
public final int getZ()Description copied from class:BlockVector3
Get the Z coordinate.- Specified by:
getZ
in classFilterBlock
- Returns:
- the z coordinate
-
getLocalX
public final int getLocalX()- Overrides:
getLocalX
in classFilterBlock
-
getLocalY
public final int getLocalY()- Overrides:
getLocalY
in classFilterBlock
-
getLocalZ
public final int getLocalZ()- Overrides:
getLocalZ
in classFilterBlock
-
getChunkX
public final int getChunkX()- Overrides:
getChunkX
in classFilterBlock
-
getChunkZ
public final int getChunkZ()- Overrides:
getChunkZ
in classFilterBlock
-
getOrdinalChar
public final char getOrdinalChar() -
getOrdinal
public final int getOrdinal()- Specified by:
getOrdinal
in classFilterBlock
-
setOrdinal
public void setOrdinal(int ordinal) - Specified by:
setOrdinal
in classFilterBlock
-
getBlock
- Specified by:
getBlock
in classFilterBlock
-
setBlock
- Specified by:
setBlock
in classFilterBlock
-
getFullBlock
- Specified by:
getFullBlock
in classFilterBlock
-
setFullBlock
- Specified by:
setFullBlock
in classFilterBlock
-
getNbtData
Description copied from interface:NbtValued
Get the object's NBT data (tile entity data). The returned tag, if modified in any way, should be sent toNbtValued.setNbtData(CompoundTag)
so that the instance knows of the changes. Making changes without callingNbtValued.setNbtData(CompoundTag)
could have unintended consequences.NbtValued.hasNbtData()
must return true if and only if method does not return null.- Specified by:
getNbtData
in interfaceNbtValued
- Specified by:
getNbtData
in classFilterBlock
- Returns:
- compound tag, or null
-
setNbtData
Description copied from interface:NbtValued
Set the object's NBT data (tile entity data).- Specified by:
setNbtData
in interfaceNbtValued
- Specified by:
setNbtData
in classFilterBlock
- Parameters:
tag
- NBT data, or null if no data
-
hasNbtData
public boolean hasNbtData()Description copied from interface:NbtValued
Returns whether the block contains NBT data.NbtValued.getNbtData()
must not return null if this method returns true.- Specified by:
hasNbtData
in interfaceNbtValued
- Overrides:
hasNbtData
in classFilterBlock
- Returns:
- true if there is NBT data
-
getBlockNorth
- Overrides:
getBlockNorth
in classFilterBlock
-
getBlockEast
- Overrides:
getBlockEast
in classFilterBlock
-
getBlockSouth
- Overrides:
getBlockSouth
in classFilterBlock
-
getBlockWest
- Overrides:
getBlockWest
in classFilterBlock
-
getBlockBelow
- Overrides:
getBlockBelow
in classFilterBlock
-
getBlockAbove
- Overrides:
getBlockAbove
in classFilterBlock
-
getBlockRelativeY
- Overrides:
getBlockRelativeY
in classFilterBlock
-
getOrdinalChar
- Overrides:
getOrdinalChar
in classBlockVector3
-
getBiomeType
-
setBlock
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block) throws WorldEditException - Throws:
WorldEditException
-
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
- Overrides:
setBiome
in classFilterBlock
- 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)
-
setBiome
-