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 com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
CharBlocks.Section
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ReentrantLock
protected final IntPair
protected final int
protected final int
protected final ConcurrentHashMap
<Integer, IChunkGet> protected int
protected boolean
protected boolean
protected final int
protected final int
protected final ServerLevel
Fields inherited from class com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
blocks, EMPTY, FULL, maxSectionPosition, minSectionPosition, sectionCount, sectionLocks, sections
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBukkitGetBlocks
(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) int
getMaxY()
int
getMinY()
int
getX()
int
getZ()
protected <T extends Future<T>>
ThandleCallFinalizer
(Runnable[] syncTasks, Runnable callback, Runnable finalizer) protected abstract <T extends Future<T>>
TinternalCall
(IChunkSet set, Runnable finalizer, int copyKey, LevelChunk nmsChunk, ServerLevel nmsWorld) boolean
void
lockCall()
protected abstract void
send()
int
setCreateCopy
(boolean createCopy) void
Methods inherited from class com.fastasyncworldedit.core.queue.implementation.blocks.CharGetBlocks
defaultOrdinal, getFullBlock, reset, trim, trim, update
Methods inherited from class com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
get, get, getBlock, getMaxSectionPosition, getMinSectionPosition, getSectionCount, hasSection, init, load, loadIfPresent, loadPrivately, 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
entities, getBitMask, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTiles, hasNonEmptySection, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArray
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkGet
entity, getBiome, getBiomeType, getBlock, getEmittedLight, getEntity, getFullEntities, getHeightMap, getSkyLight, getTile, optimize, setHeightmapToGet, setLightingToGet, setSkyLightingToGet
Methods inherited from interface com.sk89q.worldedit.extent.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
protected <T extends Future<T>> T handleCallFinalizer(Runnable[] syncTasks, Runnable callback, Runnable finalizer) throws Exception - Throws:
Exception
-
getX
public int getX()- Specified by:
getX
in interfaceIBlocks
- Overrides:
getX
in classCharBlocks
-
getZ
public int getZ()- Specified by:
getZ
in interfaceIBlocks
- Overrides:
getZ
in 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()
-