java.lang.Object
org.cloudburstmc.api.level.chunk.LockableChunk
- All Implemented Interfaces:
Comparable<Chunk>,Lock,Chunk
-
Field Summary
Fields inherited from interface org.cloudburstmc.api.level.chunk.Chunk
STATE_FINISHED, STATE_GENERATED, STATE_NEW, STATE_POPULATED -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.level.chunk.Chunk
addBlockEntity, addEntity, clear, clearDirty, close, compareTo, getAndSetBlock, getAndSetBlock, getBiome, getBiomeArray, getBlock, getBlock, getBlockEntities, getBlockEntity, getBlockLight, getEntities, getHeightMapArray, getHighestBlock, getLevel, getLoaders, getOrCreateSection, getPlayerLoaders, getPlayers, getSection, getSections, getSkyLight, getState, getX, getZ, isDirty, isFinished, isGenerated, isPopulated, key, readLockable, removeBlockEntity, removeEntity, setBiome, setBlock, setBlock, setBlockLight, setDirty, setDirty, setSkyLight, setState, writeLockable
-
Constructor Details
-
LockableChunk
-
-
Method Details
-
lock
public void lock() -
lockInterruptibly
- Specified by:
lockInterruptiblyin interfaceLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Specified by:
tryLockin interfaceLock- Throws:
InterruptedException
-
unlock
public void unlock() -
newCondition
- Specified by:
newConditionin interfaceLock
-