IDensityFunction interface
public interface IDensityFunction : IRegistryResource
In Obsidian.API.
Properties
double MaxValue { get; }double MinValue { get; }Methods
double GetValue(double x, double y, double z);MapAll(IDensityFunctionVisitor)
IDensityFunction MapAll(IDensityFunctionVisitor visitor);Rebuilds this function with every child passed through visitor (depth-first) and then hands the rebuilt function itself to the visitor.
Remarks
Used to bind seeded noises to a world and to swap marker functions (interpolated, caches) for chunk-bound implementations. Leaf functions only need the default implementation.