@NotThreadSafe public final class CloudLockableChunk extends org.cloudburstmc.api.level.chunk.LockableChunk
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) |
void |
addEntity(org.cloudburstmc.api.entity.Entity entity) |
void |
clear() |
boolean |
clearDirty() |
void |
close() |
org.cloudburstmc.api.block.BlockState |
getAndSetBlock(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState blockState) |
int |
getBiome(int x,
int z) |
byte[] |
getBiomeArray() |
org.cloudburstmc.api.block.BlockState |
getBlock(int x,
int y,
int z,
int layer) |
Set<BaseBlockEntity> |
getBlockEntities() |
org.cloudburstmc.api.blockentity.BlockEntity |
getBlockEntity(int x,
int y,
int z) |
byte |
getBlockLight(int x,
int y,
int z) |
Set<BaseEntity> |
getEntities() |
int[] |
getHeightMapArray() |
int |
getHighestBlock(int x,
int z) |
org.cloudburstmc.api.level.Level |
getLevel() |
Set<? extends org.cloudburstmc.api.level.ChunkLoader> |
getLoaders() |
CloudChunkSection |
getOrCreateSection(int y) |
Set<? extends org.cloudburstmc.api.player.Player> |
getPlayerLoaders() |
Set<CloudPlayer> |
getPlayers() |
CloudChunkSection |
getSection(int y) |
CloudChunkSection[] |
getSections() |
byte |
getSkyLight(int x,
int y,
int z) |
int |
getState() |
int |
getX() |
int |
getZ() |
boolean |
isDirty() |
long |
key() |
org.cloudburstmc.api.level.chunk.LockableChunk |
readLockable() |
void |
removeBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) |
void |
removeEntity(org.cloudburstmc.api.entity.Entity entity) |
void |
setBiome(int x,
int z,
int biome) |
void |
setBlock(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState blockState) |
void |
setBlockLight(int x,
int y,
int z,
int level) |
void |
setDirty(boolean dirty) |
void |
setSkyLight(int x,
int y,
int z,
int level) |
int |
setState(int next) |
org.cloudburstmc.api.level.chunk.LockableChunk |
writeLockable() |
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock@Nonnull public CloudChunkSection getOrCreateSection(int y)
@Nullable public CloudChunkSection getSection(int y)
@Nonnull public CloudChunkSection[] getSections()
@Nonnull public org.cloudburstmc.api.block.BlockState getBlock(int x, int y, int z, int layer)
public org.cloudburstmc.api.block.BlockState getAndSetBlock(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState blockState)
public void setBlock(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState blockState)
public int getBiome(int x,
int z)
public void setBiome(int x,
int z,
int biome)
public byte getSkyLight(int x,
int y,
int z)
public void setSkyLight(int x,
int y,
int z,
int level)
public byte getBlockLight(int x,
int y,
int z)
public void setBlockLight(int x,
int y,
int z,
int level)
public int getHighestBlock(int x,
int z)
public void addEntity(@Nonnull org.cloudburstmc.api.entity.Entity entity)
public void removeEntity(org.cloudburstmc.api.entity.Entity entity)
public void addBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)
public void removeBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)
public org.cloudburstmc.api.blockentity.BlockEntity getBlockEntity(int x,
int y,
int z)
public int getX()
public int getZ()
@Nonnull public org.cloudburstmc.api.level.Level getLevel()
@Nonnull public byte[] getBiomeArray()
@Nonnull public int[] getHeightMapArray()
@Nonnull public Set<CloudPlayer> getPlayers()
@Nonnull public Set<BaseEntity> getEntities()
@Nonnull public Set<BaseBlockEntity> getBlockEntities()
public int getState()
public int setState(int next)
public boolean isDirty()
public void setDirty(boolean dirty)
public boolean clearDirty()
public void clear()
public long key()
public org.cloudburstmc.api.level.chunk.LockableChunk readLockable()
public org.cloudburstmc.api.level.chunk.LockableChunk writeLockable()
public void close()
public Set<? extends org.cloudburstmc.api.level.ChunkLoader> getLoaders()
public Set<? extends org.cloudburstmc.api.player.Player> getPlayerLoaders()
Copyright © 2021. All rights reserved.