Interface BiasedToBottomHeight
- All Superinterfaces:
HeightProvider, Wrapper
A height provider biased toward
HeightProvider.minInclusive(). Values at or below
inner() follow a uniform distribution and above it an exponential one.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface HeightProvider
HeightProvider.HeightProviderBuilder<T,S> -
Method Summary
Modifier and TypeMethodDescriptionstatic BiasedToBottomHeight.Builderbuilder()Creates a new builder.intinner()The bias factor.static BiasedToBottomHeightof(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Creates a new biased-to-bottom height provider.default BiasedToBottomHeight.BuilderConverts this object back to a builder.Methods inherited from interface HeightProvider
maxInclusive, minInclusiveMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
inner
The bias factor. Values between 1 andmax - min(inclusive) are uniformly distributed and values above it follow an exponential distribution.- Returns:
- the bias factor
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static BiasedToBottomHeight of(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Creates a new biased-to-bottom height provider.- Parameters:
minInclusive- the vertical anchor to use as the minimum heightmaxInclusive- the vertical anchor to use as the maximum heightinner- the bias factor- Returns:
- the biased-to-bottom height provider
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-