Record Class IntProvider.Constant
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.IntProvider.Constant
- All Implemented Interfaces:
Wrapper, IntProvider
- Enclosing interface:
IntProvider
@AsOf("2.3.0")
public static record IntProvider.Constant(int value)
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.intvalue()Returns the value of thevaluerecord component.Methods inherited from interface IntProvider
toMinecraft
-
Constructor Details
-
Constant
public Constant(int value) Creates an instance of aConstantrecord class.- Parameters:
value- the value for thevaluerecord 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 with thecomparemethod from their corresponding wrapper classes. -
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-