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
  • Method Details

    • getOrCreateSection

      @Nonnull public CloudChunkSection getOrCreateSection(int y)
    • getSection

      @Nullable public CloudChunkSection getSection(int y)
    • getSections

      @Nonnull public CloudChunkSection[] 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

      @Nonnull public Set<CloudPlayer> getPlayers()
    • getEntities

      @Nonnull public Set<BaseEntity> getEntities()
    • getBlockEntities

      @Nonnull public Set<BaseBlockEntity> 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

      public Set<? extends org.cloudburstmc.api.level.ChunkLoader> getLoaders()
    • getPlayerLoaders

      public Set<? extends org.cloudburstmc.api.player.Player> getPlayerLoaders()