API reference Obsidian.API.World.Generator.DensityFunctions
WeirdScaledSamplerDensityFunction class
public sealed class WeirdScaledSamplerDensityFunction : IDensityFunction, IRegistryResource
In Obsidian.API.
Constructors
public WeirdScaledSamplerDensityFunction();Properties
public required IDensityFunction Input { get; init; }public double MaxValue { get; }public double MinValue { get; }public required INoise Noise { get; init; }RarityValueMapper
public required string RarityValueMapper { get; init; }type_1 (3D spaghetti caves) or type_2 (2D spaghetti caves).
public string Type { get; }Methods
public double GetValue(double x, double y, double z);public IDensityFunction MapAll(IDensityFunctionVisitor visitor);