Record Class IntProvider.WeightedListInt
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.IntProvider.WeightedListInt
- All Implemented Interfaces:
Wrapper, IntProvider
- Enclosing interface:
IntProvider
@AsOf("2.3.0")
public static record IntProvider.WeightedListInt(WeightedList<IntProvider> distribution)
extends Record
implements IntProvider
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntProvider
IntProvider.BiasedToBottom, IntProvider.Clamped, IntProvider.ClampedNormal, IntProvider.Constant, IntProvider.Factory, IntProvider.Trapezoid, IntProvider.Uniform, IntProvider.WeightedListIntNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface IntProvider
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionWeightedListInt(WeightedList<IntProvider> distribution) Creates an instance of aWeightedListIntrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistributionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intThe largest value this provider can yield.intThe smallest value this provider can yield.final StringtoString()Returns a string representation of this record class.Methods inherited from interface IntProvider
toMinecraft
-
Constructor Details
-
WeightedListInt
Creates an instance of aWeightedListIntrecord class.- Parameters:
distribution- the value for thedistributionrecord component
-
-
Method Details
-
minInclusive
public int minInclusive()Description copied from interface:IntProviderThe smallest value this provider can yield.- Specified by:
minInclusivein interfaceIntProvider- Returns:
- the smallest value this provider can yield.
-
maxInclusive
public int maxInclusive()Description copied from interface:IntProviderThe largest value this provider can yield.- Specified by:
maxInclusivein interfaceIntProvider- Returns:
- the largest value this provider can yield.
-
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 withObjects::equals(Object,Object). -
distribution
Returns the value of thedistributionrecord component.- Returns:
- the value of the
distributionrecord component
-