Interface BiasedToBottomInt
- All Superinterfaces:
Comparable<ValueProvider>, IntProvider, ValueProvider, Wrapper
A provider that is similar to a
UniformInt,
but has a bias toward IntProvider.minInclusive().
Internally, it is min + random(random(max - min + 1) + 1).- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface IntProvider
IntProvider.IntProviderBuilder<T,S> -
Method Summary
Modifier and TypeMethodDescriptionstatic BiasedToBottomInt.Builderbuilder()Creates a new builder.static BiasedToBottomIntof(int min, int max) Creates a new biased to bottom int provider.default BiasedToBottomInt.BuilderCreates a new builder from this provider.Methods inherited from interface IntProvider
clamp, max, maxInclusive, min, minInclusiveMethods inherited from interface ValueProvider
compareToMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
toBuilder
Creates a new builder from this provider.- Returns:
- a new builder
- Since:
- 3.0.0
-
of
Creates a new biased to bottom int provider.- Parameters:
min- the minimum valuemax- the maximum value- Returns:
- the biased to bottom int provider
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-