Class ChunkPrimer

java.lang.Object
org.cloudburstmc.server.level.chunk.ChunkPrimer

public final class ChunkPrimer extends Object
A very fast chunk implementation, used during initial terrain generation.

This class is not thread-safe.

Author:
DaPorkchop_
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears this chunk primer, resetting all blocks to air.
    org.cloudburstmc.api.block.BlockState
    getBlock​(int x, int y, int z)
     
    org.cloudburstmc.api.block.BlockState
    getBlock​(int x, int y, int z, int layer)
     
    void
    setBlock​(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState)
     
    void
    setBlock​(int x, int y, int z, org.cloudburstmc.api.block.BlockState blockState)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChunkPrimer

      public ChunkPrimer()
  • Method Details

    • setBlock

      public void setBlock(int x, int y, int z, org.cloudburstmc.api.block.BlockState blockState)
    • setBlock

      public void setBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState)
    • getBlock

      public org.cloudburstmc.api.block.BlockState getBlock(int x, int y, int z)
    • getBlock

      public org.cloudburstmc.api.block.BlockState getBlock(int x, int y, int z, int layer)
    • clear

      public void clear()
      Clears this chunk primer, resetting all blocks to air.