Interface UniformHeight
- All Superinterfaces:
HeightProvider, Wrapper
A height provider which samples a uniformly distributed value between
HeightProvider.minInclusive() and HeightProvider.maxInclusive() (inclusive).- 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 UniformHeight.Builderbuilder()Creates a new builder.static UniformHeightof(VerticalAnchor minInclusive, VerticalAnchor maxInclusive) Creates a new uniform height provider.default UniformHeight.BuilderConverts this object back to a builder.Methods inherited from interface HeightProvider
maxInclusive, minInclusiveMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
Creates a new uniform height provider.- Parameters:
minInclusive- the vertical anchor to use as the minimum heightmaxInclusive- the vertical anchor to use as the maximum height- Returns:
- the uniform height provider
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-