Record Class IntProvider.Trapezoid
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.IntProvider.Trapezoid
- All Implemented Interfaces:
Wrapper, IntProvider
- Enclosing interface:
IntProvider
@AsOf("2.3.0")
public static record IntProvider.Trapezoid(int minInclusive, int maxInclusive, int plateau)
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
ConstructorsConstructorDescriptionTrapezoid(int minInclusive, int maxInclusive, int plateau) Creates an instance of aTrapezoidrecord class. -
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.intReturns the value of themaxInclusiverecord component.intReturns the value of theminInclusiverecord component.intplateau()Returns the value of theplateaurecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface IntProvider
toMinecraft
-
Constructor Details
-
Trapezoid
public Trapezoid(int minInclusive, int maxInclusive, int plateau) Creates an instance of aTrapezoidrecord class.- Parameters:
minInclusive- the value for theminInclusiverecord componentmaxInclusive- the value for themaxInclusiverecord componentplateau- the value for theplateaurecord component
-
-
Method Details
-
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.- Specified by:
minInclusivein interfaceIntProvider- Returns:
- the value of the
minInclusiverecord component
-
maxInclusive
public int maxInclusive()Returns the value of themaxInclusiverecord component.- Specified by:
maxInclusivein interfaceIntProvider- Returns:
- the value of the
maxInclusiverecord component
-
plateau
public int plateau()Returns the value of theplateaurecord component.- Returns:
- the value of the
plateaurecord component
-