Class PopulationChunkManager

java.lang.Object
org.cloudburstmc.server.level.manager.PopulationChunkManager
All Implemented Interfaces:
org.cloudburstmc.api.level.ChunkManager

public final class PopulationChunkManager extends Object implements org.cloudburstmc.api.level.ChunkManager
Implementation of ChunkManager used during chunk population.
Author:
DaPorkchop_
  • Constructor Summary

    Constructors
    Constructor
    Description
    PopulationChunkManager​(@NonNull org.cloudburstmc.api.level.chunk.Chunk chunk, @NonNull org.cloudburstmc.api.level.chunk.LockableChunk[] allChunks, long seed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.cloudburstmc.api.block.Block
    getBlock​(int x, int y, int z)
     
    org.cloudburstmc.api.block.BlockState
    getBlockState​(int x, int y, int z)
     
    org.cloudburstmc.api.block.BlockState
    getBlockState​(int x, int y, int z, int layer)
     
    org.cloudburstmc.api.level.chunk.Chunk
    getChunk​(int chunkX, int chunkZ)
     
    org.cloudburstmc.api.level.chunk.Chunk
    getChunk​(long key)
     
    CompletableFuture<? extends org.cloudburstmc.api.level.chunk.Chunk>
    getChunkFuture​(int chunkX, int chunkZ)
     
    Set<? extends org.cloudburstmc.api.level.ChunkLoader>
    getChunkLoaders​(int chunkX, int chunkZ)
     
    Set<? extends org.cloudburstmc.api.player.Player>
    getChunkPlayers​(int chunkX, int chunkZ)
     
    Set<? extends org.cloudburstmc.api.level.chunk.Chunk>
     
    org.cloudburstmc.api.block.Block
    getLoadedBlock​(int x, int y, int z)
     
    org.cloudburstmc.api.level.chunk.Chunk
    getLoadedChunk​(long key)
     
    boolean
    setBlockState​(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState state)
     
    boolean
    setBlockState​(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState state, boolean direct, boolean update)
     
    boolean
    setBlockState​(int x, int y, int z, org.cloudburstmc.api.block.BlockState state)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cloudburstmc.api.level.ChunkManager

    getBlock, getBlock, getBlockState, getBlockState, getBlockState, getChunk, getChunk, getChunk, getLoadedBlock, getLoadedBlock, getLoadedChunk, getLoadedChunk, getLoadedChunk, getSeed, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState
  • Constructor Details

    • PopulationChunkManager

      public PopulationChunkManager(@NonNull @NonNull org.cloudburstmc.api.level.chunk.Chunk chunk, @NonNull @NonNull org.cloudburstmc.api.level.chunk.LockableChunk[] allChunks, long seed)
  • Method Details

    • getBlockState

      public org.cloudburstmc.api.block.BlockState getBlockState(int x, int y, int z)
      Specified by:
      getBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • getBlockState

      public org.cloudburstmc.api.block.BlockState getBlockState(int x, int y, int z, int layer)
      Specified by:
      getBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • getBlock

      public org.cloudburstmc.api.block.Block getBlock(int x, int y, int z)
      Specified by:
      getBlock in interface org.cloudburstmc.api.level.ChunkManager
    • getLoadedBlock

      public org.cloudburstmc.api.block.Block getLoadedBlock(int x, int y, int z)
      Specified by:
      getLoadedBlock in interface org.cloudburstmc.api.level.ChunkManager
    • setBlockState

      public boolean setBlockState(int x, int y, int z, org.cloudburstmc.api.block.BlockState state)
      Specified by:
      setBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • setBlockState

      public boolean setBlockState(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState state)
      Specified by:
      setBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • setBlockState

      public boolean setBlockState(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState state, boolean direct, boolean update)
      Specified by:
      setBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • getChunk

      public org.cloudburstmc.api.level.chunk.Chunk getChunk(int chunkX, int chunkZ)
      Specified by:
      getChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunk

      @Nonnull public org.cloudburstmc.api.level.chunk.Chunk getChunk(long key)
      Specified by:
      getChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getLoadedChunk

      @Nullable public org.cloudburstmc.api.level.chunk.Chunk getLoadedChunk(long key)
      Specified by:
      getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunkFuture

      @Nonnull public CompletableFuture<? extends org.cloudburstmc.api.level.chunk.Chunk> getChunkFuture(int chunkX, int chunkZ)
      Specified by:
      getChunkFuture in interface org.cloudburstmc.api.level.ChunkManager
    • getChunks

      @Nonnull public Set<? extends org.cloudburstmc.api.level.chunk.Chunk> getChunks()
      Specified by:
      getChunks in interface org.cloudburstmc.api.level.ChunkManager
    • getChunkPlayers

      public Set<? extends org.cloudburstmc.api.player.Player> getChunkPlayers(int chunkX, int chunkZ)
      Specified by:
      getChunkPlayers in interface org.cloudburstmc.api.level.ChunkManager
    • getChunkLoaders

      public Set<? extends org.cloudburstmc.api.level.ChunkLoader> getChunkLoaders(int chunkX, int chunkZ)
      Specified by:
      getChunkLoaders in interface org.cloudburstmc.api.level.ChunkManager