Class CharGetBlocks
java.lang.Object
com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
com.fastasyncworldedit.core.queue.implementation.blocks.CharGetBlocks
- All Implemented Interfaces:
IBlocks
,IChunkGet
,ITileInput
,Trimable
,InputExtent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
CharBlocks.Section
-
Field Summary
Fields inherited from class com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
blocks, empty, FULL, maxSectionPosition, minSectionPosition, sectionCount, sectionLocks, sections
-
Constructor Summary
ConstructorDescriptionCharGetBlocks
(int minSectionPosition, int maxSectionPosition) New instance given the min/max section indices -
Method Summary
Modifier and TypeMethodDescriptionprotected char
Default char value to be used when "updating"/resetting data arraysgetFullBlock
(int x, int y, int z) reset()
boolean
trim
(boolean aggressive) Trims the object, reducing its memory footprint.boolean
trim
(boolean aggressive, int layer) char[]
update
(int layer, char[] data, boolean aggressive) Methods inherited from class com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
get, get, getBlock, getMaxSectionPosition, getMinSectionPosition, getSectionCount, hasSection, load, loadIfPresent, reset, set, set
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.IBlocks
getBitMask, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTile, getTiles, hasSection, load, loadIfPresent, removeSectionLighting, toByteArray, toByteArray
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkGet
call, getBiome, getBiomeType, getBlock, getCopy, getEmittedLight, getEntity, getHeightMap, getMaxY, getMinY, getSkyLight, isCreateCopy, optimize, setCreateCopy, setHeightmapToGet, setLightingToGet, setSkyLightingToGet
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
Methods inherited from interface com.fastasyncworldedit.core.queue.ITileInput
getTile
-
Constructor Details
-
CharGetBlocks
public CharGetBlocks(int minSectionPosition, int maxSectionPosition) New instance given the min/max section indices
-
-
Method Details
-
getFullBlock
- Specified by:
getFullBlock
in interfaceIChunkGet
- Specified by:
getFullBlock
in interfaceInputExtent
-
trim
public boolean trim(boolean aggressive) Description copied from interface:Trimable
Trims the object, reducing its memory footprint.- Specified by:
trim
in interfaceTrimable
- Overrides:
trim
in classCharBlocks
- Parameters:
aggressive
- if trimming should be aggressive e.g., Not returning early when the first element cannot be trimmed- Returns:
- if this object is empty at the end of the trim, and can therefore be deleted
-
update
public char[] update(int layer, char[] data, boolean aggressive) - Overrides:
update
in classCharBlocks
-
defaultOrdinal
protected char defaultOrdinal()Description copied from class:CharBlocks
Default char value to be used when "updating"/resetting data arrays- Specified by:
defaultOrdinal
in classCharBlocks
-
trim
public boolean trim(boolean aggressive, int layer) - Specified by:
trim
in interfaceIBlocks
- Overrides:
trim
in classCharBlocks
-
reset
- Specified by:
reset
in interfaceIBlocks
- Overrides:
reset
in classCharBlocks
-