Class ChunkFilterBlock
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
- All Implemented Interfaces:
TileEntityBlock
,Extent
,InputExtent
,OutputExtent
,NbtValued
- Direct Known Subclasses:
CharFilterBlock
Filter block implementation which uses chunks
- First call initChunk
- Then for each layer, call initLayer
- Then use whatever filter method you want, to iterate over the blocks in that layer
-
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 TypeMethodDescriptionabstract void
Filter everything in the layer.abstract void
Filter everything between y layers.abstract void
Filter a single block.abstract void
Filter a cuboid region.abstract void
Filter with a region.final IChunkSet
Filter with a chunk object.final IChunkSet
Filter a chunk with a region / filter.abstract void
flood
(IChunkGet iget, IChunkSet iset, int layer, Flood flood, FilterBlockMask mask) abstract ChunkFilterBlock
initChunk
(int chunkX, int chunkZ) Initialize with chunk coordinates.abstract ChunkFilterBlock
Initialize a chunk layer.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, getBlock, getBlockAbove, getBlockBelow, getBlockEast, getBlockNorth, getBlockRelativeY, getBlockSouth, getBlockWest, getChunkX, getChunkZ, getFullBlock, getFullBlock, getFullBlock, getLocalX, getLocalY, getLocalZ, getMaximumPoint, getMinimumPoint, getNbtData, getNbtData, getOrdinal, getOrdinal, getOrdinalBelow, getStateAbove, getStateRelativeY, getX, getY, getZ, hasNbtData, setBiome, setBiome, setBlock, setBlock, setFullBlock, setFullBlock, setNbtData, setOrdinal, 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, setBiome, setBlock, setBlock, setBlockLight, setBlockLight, setHeightMap, setSkyLight, setSkyLight
Methods inherited from interface com.sk89q.worldedit.blocks.TileEntityBlock
getNbtId
-
Constructor Details
-
ChunkFilterBlock
-
-
Method Details
-
initChunk
Initialize with chunk coordinates. The layer must also be initialized. -
initLayer
Initialize a chunk layer. the Chunk coordinates need to be initialized first. -
flood
public abstract void flood(IChunkGet iget, IChunkSet iset, int layer, Flood flood, FilterBlockMask mask) -
filter
Filter a single block. -
filter
public abstract void filter(Filter filter, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Filter a cuboid region. -
filter
Filter everything in the layer. -
filter
Filter everything between y layers. -
filter
Filter with a region. -
filter
Filter with a chunk object. -
filter
public final IChunkSet filter(IChunk chunk, IChunkGet get, IChunkSet set, Filter filter, Region region, boolean full) Filter a chunk with a region / filter.
-