All Superinterfaces:
GenerationPass
All Known Implementing Classes:
CachingBiomeMap, ComplexBiomeMap, ConstantBiomeMap

public interface BiomeMap extends GenerationPass
A map of the biomes in a given area.
Author:
DaPorkchop_
  • Method Details

    • get

      GenerationBiome get(int x, int z)
      Gets the GenerationBiome at the given world coordinates.
      Parameters:
      x - the X coordinate
      z - the Z coordinate
      Returns:
      the GenerationBiome at the given coordinates
    • getRegion

      GenerationBiome[] getRegion(GenerationBiome[] arr, int x, int z, int sizeX, int sizeZ)
      Gets the GenerationBiomes in the given world region.
      Parameters:
      arr - the GenerationBiome[] to fill. A new array will be created if this array is null or too small
      x - the region's base X coordinate
      z - the region's base Z coordinate
      sizeX - the size of the region along the X axis
      sizeZ - the size of the region along the Z axis Gets the GenerationBiomes in the given world region.
    • getRegionIds

      org.cloudburstmc.api.util.Identifier[] getRegionIds(org.cloudburstmc.api.util.Identifier[] arr, int x, int z, int sizeX, int sizeZ)
      Gets the Identifiers of the biomes in the given world region.
      Parameters:
      arr - the Identifier[] to fill. A new array will be created if this array is null or too small
      x - the region's base X coordinate
      z - the region's base Z coordinate
      sizeX - the size of the region along the X axis
      sizeZ - the size of the region along the Z axis Gets the Identifiers in the given world region.
    • needsCaching

      boolean needsCaching()
      Returns:
      whether or not this BiomeMap's results should be cached for performance
    • possibleBiomes

      Set<GenerationBiome> possibleBiomes()
      Returns:
      a Set containing all of the biomes that could be returned by this BiomeMap
    • getId

      org.cloudburstmc.api.util.Identifier getId()
      Specified by:
      getId in interface GenerationPass
      Returns:
      the identifier of this generation pass