Class AbstractSingleFilterBlock
java.lang.Object
com.sk89q.worldedit.math.BlockVector3
com.fastasyncworldedit.core.extent.filter.block.FilterBlock
com.fastasyncworldedit.core.extent.filter.block.AbstractSingleFilterBlock
- All Implemented Interfaces:
TileEntityBlock
,Extent
,InputExtent
,OutputExtent
,NbtValued
- Direct Known Subclasses:
SingleFilterBlock
-
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 TypeMethodDescriptiongetBlock()
Get the maximum point in the extent.Get the minimum point in the extent.Get the object's NBT data (tile entity data).int
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.FilterBlock
getBiome, getBlock, getBlock, getBlockAbove, getBlockBelow, getBlockEast, getBlockNorth, getBlockRelativeY, getBlockSouth, getBlockWest, getChunkX, getChunkZ, getFullBlock, getFullBlock, getLocalX, getLocalY, getLocalZ, getNbtData, getOrdinal, getOrdinalBelow, getStateAbove, getStateRelativeY, getX, getY, getZ, 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
-
AbstractSingleFilterBlock
public AbstractSingleFilterBlock()
-
-
Method Details
-
init
-
getExtent
- Specified by:
getExtent
in classFilterBlock
-
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
-
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:
nbtData
- NBT data, or null if no data
-
getMinimumPoint
Description copied from interface:Extent
Get the minimum point in the extent.If the extent is unbounded, then a large (negative) value may be returned.
- Specified by:
getMinimumPoint
in interfaceExtent
- Overrides:
getMinimumPoint
in classFilterBlock
- Returns:
- the minimum point
-
getMaximumPoint
Description copied from interface:Extent
Get the maximum point in the extent.If the extent is unbounded, then a large (positive) value may be returned.
- Specified by:
getMaximumPoint
in interfaceExtent
- Overrides:
getMaximumPoint
in classFilterBlock
- Returns:
- the maximum point
-
setBlock
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block) throws WorldEditException - Throws:
WorldEditException
-
setBiome
-