SectionBiomeInformation

data class SectionBiomeInformation(biomes: Array<String>?, baseBiome: String?)

Holds the information about biomes for a single section. There are 3 possible: scenarii:

  1. biomes = null and baseBiome = null This means either the section is from before 1.18, so no biome information exists in the section OR you accessed the biomes via ChunkReader directly, and no biome information is available for the given section.

  2. biomes = null and baseBiome != null This means the section has biome information, but the entire section is filled with baseBiome. Technically this means there is a palette with at least 1 element but no data.

  3. biomes != null The biomes array holds the biomes for this section.

Constructors

SectionBiomeInformation
Link copied to clipboard
fun SectionBiomeInformation()
SectionBiomeInformation
Link copied to clipboard
fun SectionBiomeInformation(biomes: Array<String>?, baseBiome: String?)

Functions

hasBiomeInformation
Link copied to clipboard
fun hasBiomeInformation(): Boolean
False iif both biomes and baseBiome are null
isFilledWithSingleBiome
Link copied to clipboard
fun isFilledWithSingleBiome(): Boolean
Is the entire section filled with a single biome?

Properties

baseBiome
Link copied to clipboard
val baseBiome: String?
biomes
Link copied to clipboard
val biomes: Array<String>?