Class AbstractBukkitGetBlocks<ServerLevel, LevelChunk>
java.lang.Object
com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
com.fastasyncworldedit.core.queue.implementation.blocks.CharGetBlocks
com.fastasyncworldedit.bukkit.adapter.AbstractBukkitGetBlocks<ServerLevel, LevelChunk>
- All Implemented Interfaces:
IBlocks, IChunkGet, ITileInput, Trimable, InputExtent
-
Nested Class Summary
Nested classes/interfaces inherited from class CharBlocks
CharBlocks.Section -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ReentrantLockprotected final IntPairprotected final intprotected final intprotected final ConcurrentHashMap<Integer, IChunkGet> protected intprotected booleanprotected booleanprotected final intprotected final intprotected final ServerLevelFields inherited from class CharBlocks
blocks, EMPTY, FULL, maxSectionPosition, minSectionPosition, sectionCount, sectionLocks -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBukkitGetBlocks(ServerLevel serverLevel, int chunkX, int chunkZ, int minY, int maxY) -
Method Summary
Modifier and TypeMethodDescription<T extends Future<T>>
Tcall(IQueueExtent<? extends IChunk> owner, IChunkSet set, Runnable finalizer) protected abstract CompletableFuture<LevelChunk> ensureLoaded(ServerLevel serverLevel) getCopy(int key) intgetMaxY()intgetMinY()intgetX()intgetZ()protected <T extends Future<T>>
ThandleCallFinalizer(List<Runnable> syncTasks, Runnable callback, Runnable finalizer) protected abstract <T extends Future<T>>
TinternalCall(IChunkSet set, Runnable finalizer, int copyKey, LevelChunk nmsChunk, ServerLevel nmsWorld) booleanvoidlockCall()protected abstract voidsend()intsetCreateCopy(boolean createCopy) voidMethods inherited from class CharGetBlocks
defaultOrdinal, getFullBlock, reset, trim, trim, updateMethods inherited from class CharBlocks
get, get, getBlock, getMaxSectionPosition, getMinSectionPosition, getSectionCount, hasSection, init, load, loadIfPresent, reset, set, setMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IBlocks
entities, getBitMask, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTiles, hasNonEmptySection, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArrayMethods inherited from interface IChunkGet
entity, getBiome, getBiomeType, getBlock, getEmittedLight, getEntity, getFullEntities, getHeightMap, getSkyLight, getTile, optimize, setHeightmapToGet, setLightingToGet, setSkyLightingToGetMethods inherited from interface InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
-
Field Details
-
serverLevel
-
chunkX
protected final int chunkX -
chunkZ
protected final int chunkZ -
callLock
-
copies
-
chunkPos
-
minHeight
protected final int minHeight -
maxHeight
protected final int maxHeight -
createCopy
protected boolean createCopy -
forceLoadSections
protected boolean forceLoadSections -
copyKey
protected int copyKey
-
-
Constructor Details
-
AbstractBukkitGetBlocks
protected AbstractBukkitGetBlocks(ServerLevel serverLevel, int chunkX, int chunkZ, int minY, int maxY)
-
-
Method Details
-
send
protected abstract void send() -
ensureLoaded
-
internalCall
protected abstract <T extends Future<T>> T internalCall(IChunkSet set, Runnable finalizer, int copyKey, LevelChunk nmsChunk, ServerLevel nmsWorld) throws Exception - Throws:
Exception
-
call
public <T extends Future<T>> T call(IQueueExtent<? extends IChunk> owner, IChunkSet set, Runnable finalizer) -
handleCallFinalizer
-
getX
public int getX()- Specified by:
getXin interfaceIBlocks- Overrides:
getXin classCharBlocks
-
getZ
public int getZ()- Specified by:
getZin interfaceIBlocks- Overrides:
getZin classCharBlocks
-
isCreateCopy
public boolean isCreateCopy() -
setCreateCopy
public int setCreateCopy(boolean createCopy) -
getCopy
-
lockCall
public void lockCall() -
unlockCall
public void unlockCall() -
getMaxY
public int getMaxY() -
getMinY
public int getMinY()
-