Interface DensityFunction

All Superinterfaces:
DataPackSerializable, DefaultedRegistryValue<DensityFunction>

  • Method Details

    • min

      double min()
      Returns the minimum value possible.
      Returns:
      The minimum value
    • max

      double max()
      Returns the maximum value possible.
      Returns:
      The maximum value
    • compute

      double compute(ServerWorld world, Vector3i pos)
      Computes the noise value at given position.
      Parameters:
      world - The world
      pos - The position
      Returns:
      The noise value at given position
    • compute

      double compute(ServerWorld world, int x, int y, int z)
      Computes the noise value at given position
      Parameters:
      world - The world
      x - The x coordinate
      y - The y coordinate
      z - The z coordinate
      Returns:
      The noise value at given position