Class BiomeMath

java.lang.Object
com.sk89q.worldedit.internal.util.BiomeMath

public class BiomeMath extends Object
  • Field Details

    • HORIZONTAL_SECTION_COUNT

      public static final int HORIZONTAL_SECTION_COUNT
    • HORIZONTAL_BIT_MASK

      public static final int HORIZONTAL_BIT_MASK
  • Method Details

    • computeBiomeIndex

      public static int computeBiomeIndex(int x, int y, int z, int minY, int maxY)
      Compute the index into the MC biome array, for extended-height worlds.
      Parameters:
      x - the block x coordinate
      y - the block y coordinate
      z - the block z coordinate
      minY - minimum y of the world
      maxY - maximum y of the world
      Returns:
      the index into the standard MC biome array