Class CloudLockableChunk
java.lang.Object
org.cloudburstmc.api.level.chunk.LockableChunk
org.cloudburstmc.server.level.chunk.CloudLockableChunk
- All Implemented Interfaces:
Comparable<org.cloudburstmc.api.level.chunk.Chunk>,Lock,org.cloudburstmc.api.level.chunk.Chunk
@NotThreadSafe
public final class CloudLockableChunk
extends org.cloudburstmc.api.level.chunk.LockableChunk
-
Field Summary
Fields inherited from interface org.cloudburstmc.api.level.chunk.Chunk
STATE_FINISHED, STATE_GENERATED, STATE_NEW, STATE_POPULATED -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)voidaddEntity(org.cloudburstmc.api.entity.Entity entity)voidclear()booleanvoidclose()org.cloudburstmc.api.block.BlockStategetAndSetBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState)intgetBiome(int x, int z)byte[]org.cloudburstmc.api.block.BlockStategetBlock(int x, int y, int z, int layer)org.cloudburstmc.api.blockentity.BlockEntitygetBlockEntity(int x, int y, int z)bytegetBlockLight(int x, int y, int z)int[]intgetHighestBlock(int x, int z)org.cloudburstmc.api.level.LevelgetLevel()Set<? extends org.cloudburstmc.api.level.ChunkLoader>getOrCreateSection(int y)Set<? extends org.cloudburstmc.api.player.Player>getSection(int y)bytegetSkyLight(int x, int y, int z)intgetState()intgetX()intgetZ()booleanisDirty()longkey()org.cloudburstmc.api.level.chunk.LockableChunkvoidremoveBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)voidremoveEntity(org.cloudburstmc.api.entity.Entity entity)voidsetBiome(int x, int z, int biome)voidsetBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState)voidsetBlockLight(int x, int y, int z, int level)voidsetDirty(boolean dirty)voidsetSkyLight(int x, int y, int z, int level)intsetState(int next)org.cloudburstmc.api.level.chunk.LockableChunkMethods inherited from class org.cloudburstmc.api.level.chunk.LockableChunk
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockMethods 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
compareTo, getAndSetBlock, getBlock, isFinished, isGenerated, isPopulated, setBlock, setDirty
-
Method Details
-
getOrCreateSection
-
getSection
-
getSections
-
getBlock
@Nonnull public org.cloudburstmc.api.block.BlockState getBlock(int x, int y, int z, int layer) -
getAndSetBlock
public org.cloudburstmc.api.block.BlockState getAndSetBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState) -
setBlock
public void setBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState) -
getBiome
public int getBiome(int x, int z) -
setBiome
public void setBiome(int x, int z, int biome) -
getSkyLight
public byte getSkyLight(int x, int y, int z) -
setSkyLight
public void setSkyLight(int x, int y, int z, int level) -
getBlockLight
public byte getBlockLight(int x, int y, int z) -
setBlockLight
public void setBlockLight(int x, int y, int z, int level) -
getHighestBlock
public int getHighestBlock(int x, int z) -
addEntity
public void addEntity(@Nonnull org.cloudburstmc.api.entity.Entity entity) -
removeEntity
public void removeEntity(org.cloudburstmc.api.entity.Entity entity) -
addBlockEntity
public void addBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) -
removeBlockEntity
public void removeBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) -
getBlockEntity
public org.cloudburstmc.api.blockentity.BlockEntity getBlockEntity(int x, int y, int z) -
getX
public int getX() -
getZ
public int getZ() -
getLevel
@Nonnull public org.cloudburstmc.api.level.Level getLevel() -
getBiomeArray
@Nonnull public byte[] getBiomeArray() -
getHeightMapArray
@Nonnull public int[] getHeightMapArray() -
getPlayers
-
getEntities
-
getBlockEntities
-
getState
public int getState() -
setState
public int setState(int next) -
isDirty
public boolean isDirty() -
setDirty
public void setDirty(boolean dirty) -
clearDirty
public boolean clearDirty() -
clear
public void clear() -
key
public long key() -
readLockable
public org.cloudburstmc.api.level.chunk.LockableChunk readLockable() -
writeLockable
public org.cloudburstmc.api.level.chunk.LockableChunk writeLockable() -
close
public void close() -
getLoaders
-
getPlayerLoaders
-