Class ArrayFilterBlock
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.ArrayFilterBlock
- 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
ConstructorsConstructorDescriptionArrayFilterBlock
(Extent extent, char[] blocks, byte[] heights, int width, int length, int yOffset) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()
Get the object's NBT data (tile entity data).int
int
getX()
Get the X coordinate.int
getY()
Get the Y coordinate.int
getZ()
Get the Z coordinate.void
init
(int x, int z, int index) boolean
<T extends BlockStateHolder<T>>
booleansetBlock
(int x, int y, int z, T block) void
setBlock
(BlockState state) void
setFullBlock
(BaseBlock block) void
setNbtData
(CompoundTag nbtData) Set the object's NBT data (tile entity data).void
setOrdinal
(int ordinal) 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, getBlockAbove, getBlockBelow, getBlockEast, getBlockNorth, getBlockRelativeY, getBlockSouth, getBlockWest, getChunkX, getChunkZ, getFullBlock, getFullBlock, getLocalX, getLocalY, getLocalZ, getMaximumPoint, getMinimumPoint, getNbtData, getOrdinal, getOrdinalBelow, getStateAbove, getStateRelativeY, hasNbtData, setBiome, setBiome, 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, getOrdinalChar, 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, getBiomeType, 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
-
ArrayFilterBlock
public ArrayFilterBlock(Extent extent, char[] blocks, byte[] heights, int width, int length, int yOffset)
-
-
Method Details
-
init
public void init(int x, int z, int index) -
getOrdinal
public int getOrdinal()- Specified by:
getOrdinal
in classFilterBlock
-
setOrdinal
public void setOrdinal(int ordinal) - Specified by:
setOrdinal
in classFilterBlock
-
getBlock
- Specified by:
getBlock
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:
nbtData
- NBT data, or null if no data
-
getX
public int getX()Description copied from class:BlockVector3
Get the X coordinate.- Specified by:
getX
in classFilterBlock
- Returns:
- the x coordinate
-
getY
public int getY()Description copied from class:BlockVector3
Get the Y coordinate.- Specified by:
getY
in classFilterBlock
- Returns:
- the y coordinate
-
getZ
public int getZ()Description copied from class:BlockVector3
Get the Z coordinate.- Specified by:
getZ
in classFilterBlock
- Returns:
- the z coordinate
-
setBlock
- Specified by:
setBlock
in classFilterBlock
-
setBlock
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block) throws WorldEditException - Throws:
WorldEditException
-
setBiome
-