Class PolarSection

java.lang.Object
net.hollowcube.polar.PolarSection

@Internal public class PolarSection extends Object
Representation of the latest version of the section format.

Marked as internal because of the use of mutable arrays. These arrays must _not_ be mutated. This class should be considered immutable.

  • Field Details

  • Constructor Details

    • PolarSection

      public PolarSection()
    • PolarSection

      public PolarSection(String @NotNull [] blockPalette, int @Nullable [] blockData, String @NotNull [] biomePalette, int @Nullable [] biomeData, @NotNull @NotNull PolarSection.LightContent blockLightContent, byte @Nullable [] blockLight, @NotNull @NotNull PolarSection.LightContent skyLightContent, byte @Nullable [] skyLight)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • blockPalette

      @NotNull public @NotNull String @NotNull [] blockPalette()
    • blockData

      public int[] blockData()
      Returns the uncompressed palette data. Each int corresponds to an index in the palette. Always has a length of 4096.
    • biomePalette

      @NotNull public @NotNull String @NotNull [] biomePalette()
    • biomeData

      public int[] biomeData()
      Returns the uncompressed palette data. Each int corresponds to an index in the palette. Always has a length of 256.
    • blockLightContent

      @NotNull public @NotNull PolarSection.LightContent blockLightContent()
    • blockLight

      public byte[] blockLight()
    • skyLightContent

      @NotNull public @NotNull PolarSection.LightContent skyLightContent()
    • skyLight

      public byte[] skyLight()