Class CachedChunkData.Builder

java.lang.Object
net.buildtheearth.terracore.worldgen.util.CustomAttributeContainer
net.buildtheearth.terracore.worldgen.generator.CachedChunkData.Builder
All Implemented Interfaces:
IEarthAsyncDataBuilder<CachedChunkData>
Enclosing class:
CachedChunkData

public static final class CachedChunkData.Builder extends CustomAttributeContainer implements IEarthAsyncDataBuilder<CachedChunkData>
Builder class for CachedChunkData.
  • Field Details

    • surfaceBlocks

      protected final net.buildtheearth.terracore.minecraft.BlockState[] surfaceBlocks
  • Constructor Details

  • Method Details

    • surfaceHeight

      public CachedChunkData.Builder surfaceHeight(int x, int z, int value)
    • updateWaterDepth

      public CachedChunkData.Builder updateWaterDepth(int x, int z, int depth)
    • updateOceanDepth

      public CachedChunkData.Builder updateOceanDepth(int x, int z, int depth)
    • surfaceHeight

      public int surfaceHeight(int x, int z)
    • putCustom

      public void putCustom(@NonNull @NonNull String key, @NonNull @NonNull Object value)
    • reset

      public CachedChunkData.Builder reset()
    • build

      public CachedChunkData build()
      Specified by:
      build in interface IEarthAsyncDataBuilder<CachedChunkData>
      Returns:
      the built value
    • surfaceHeight

      public int[] surfaceHeight()
    • waterDepth

      public byte[] waterDepth()
    • biomes

      public net.buildtheearth.terracore.minecraft.Biome[] biomes()
    • surfaceBlocks

      public net.buildtheearth.terracore.minecraft.BlockState[] surfaceBlocks()