Record Class IntProvider.BiasedToBottom
java.lang.Object
java.lang.Record
net.minestom.server.utils.IntProvider.BiasedToBottom
- All Implemented Interfaces:
IntProvider
- Enclosing interface:
IntProvider
public static record IntProvider.BiasedToBottom(int minInclusive, int maxInclusive)
extends Record
implements IntProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntProvider
IntProvider.BiasedToBottom, IntProvider.Clamped, IntProvider.ClampedNormal, IntProvider.Constant, IntProvider.Uniform, IntProvider.Weighted -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBiasedToBottom(int minInclusive, int maxInclusive) Creates an instance of aBiasedToBottomrecord class. -
Method Summary
Modifier and TypeMethodDescriptionStructCodec<? extends IntProvider> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxInclusiverecord component.intReturns the value of theminInclusiverecord component.intfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BiasedToBottom
public BiasedToBottom(int minInclusive, int maxInclusive) Creates an instance of aBiasedToBottomrecord class.- Parameters:
minInclusive- the value for theminInclusiverecord componentmaxInclusive- the value for themaxInclusiverecord component
-
-
Method Details
-
sample
- Specified by:
samplein interfaceIntProvider
-
codec
- Specified by:
codecin interfaceIntProvider
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
minInclusive
public int minInclusive()Returns the value of theminInclusiverecord component.- Returns:
- the value of the
minInclusiverecord component
-
maxInclusive
public int maxInclusive()Returns the value of themaxInclusiverecord component.- Returns:
- the value of the
maxInclusiverecord component
-