Interface BiomeSourceContext


@NullMarked @AsOf("3.3.0") public interface BiomeSourceContext
The sampling context handed to a CustomBiomeSource while Minecraft determines a biome. Coordinates supplied by Minecraft are quart positions, where one unit represents four blocks.
Since:
3.3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Gets the block-coordinate represented by quartX().
    default int
    Gets the block-coordinate represented by quartY().
    default int
    Gets the block-coordinate represented by quartZ().
    Gets the ranges produced by Minecraft's climate sampler as a climate point.
    int
    Gets the quart-coordinate on the x-axis.
    int
    Gets the quart-coordinate on the y-axis.
    int
    Gets the quart-coordinate on the z-axis.
    Gets the spawn-target climate points carried by Minecraft's climate sampler.
  • Method Details

    • quartX

      @AsOf("3.3.0") int quartX()
      Gets the quart-coordinate on the x-axis.
      Returns:
      the quart x-coordinate
      Since:
      3.3.0
    • quartY

      @AsOf("3.3.0") int quartY()
      Gets the quart-coordinate on the y-axis.
      Returns:
      the quart y-coordinate
      Since:
      3.3.0
    • quartZ

      @AsOf("3.3.0") int quartZ()
      Gets the quart-coordinate on the z-axis.
      Returns:
      the quart z-coordinate
      Since:
      3.3.0
    • blockX

      @AsOf("3.3.0") default int blockX()
      Gets the block-coordinate represented by quartX().
      Returns:
      the block x-coordinate
      Since:
      3.3.0
    • blockY

      @AsOf("3.3.0") default int blockY()
      Gets the block-coordinate represented by quartY().
      Returns:
      the block y-coordinate
      Since:
      3.3.0
    • blockZ

      @AsOf("3.3.0") default int blockZ()
      Gets the block-coordinate represented by quartZ().
      Returns:
      the block z-coordinate
      Since:
      3.3.0
    • climateBounds

      @AsOf("3.3.0") ClimatePoint climateBounds()
      Gets the ranges produced by Minecraft's climate sampler as a climate point.
      Returns:
      the climate sampler ranges
      Since:
      3.3.0
    • spawnTarget

      @AsOf("3.3.0") List<ClimatePoint> spawnTarget()
      Gets the spawn-target climate points carried by Minecraft's climate sampler.
      Returns:
      the spawn-target climate points
      Since:
      3.3.0