Interface DensityFunction

All Superinterfaces:
DataPackSerializable, DefaultedRegistryValue

  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double
    compute(int x, int y, int z)
    Computes the noise value at given position
    double
    Computes the noise value at given position.
    double
    max()
    Returns the maximum value possible.
    double
    min()
    Returns the minimum value possible.

    Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable Link icon

    toDataPack

    Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue Link icon

    asDefaultedReference, findKey, key
  • Method Details Link icon

    • min Link icon

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

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

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

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