Package dev.wyck.worldgen.valueproviders
package dev.wyck.worldgen.valueproviders
-
ClassDescriptionA provider that is similar to a
UniformInt, but has a bias towardIntProvider.minInclusive().Builder forBiasedToBottomInt.Samples aClampedInt.source()provider and hard-clamps the result into [IntProvider.minInclusive(),IntProvider.maxInclusive()].Builder forClampedInt.Clamped normal samples a bell curve centered at mean with spread deviation, then forces the result into [FloatProvider.minInclusive(),FloatProvider.maxInclusive()].Builder forClampedNormalFloat.Clamped normal samples a bell curve centered at mean with spread deviation, then forces the result into [IntProvider.minInclusive(),IntProvider.maxInclusive()].Builder forClampedNormalInt.A constant float provider which always returns the same value.A constant int provider which always returns the same value.A provider of a floating-point value.FloatProvider.FloatProviderBuilder<T extends FloatProvider, S extends FloatProvider.FloatProviderBuilder<T,S>> Common abstract builder for float providers with inclusive bounds.A provider of an integer value.IntProvider.IntProviderBuilder<T extends IntProvider, S extends IntProvider.IntProviderBuilder<T,S>> Common abstract builder for most int providers.A trapezoid float provider: a random value with an isosceles trapezoidal distribution.Builder forTrapezoidFloat.A trapezoid int provider.Builder forTrapezoidInt.Uniform float providers sample a range betweenFloatProvider.minInclusive()(inclusive) andUniformFloat.maxExclusive()(exclusive), returning a single, uniformly random value.Builder forUniformFloat.Uniform int providers sample a range between the inclusive values and return a single, random integer from the range.Builder forUniformInt.AWrapperover a numeric value-provider family whose members expose a range of yieldable values.A two-stage provider: an entry is picked from theWeightedListInt.distribution()proportionally to its weight, then that entry's provider is sampled.Builder forWeightedListInt.