Record Class HeightProvider.Trapezoid
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.HeightProvider.Trapezoid
- All Implemented Interfaces:
Wrapper, HeightProvider
- Enclosing interface:
HeightProvider
@AsOf("2.3.0")
public static record HeightProvider.Trapezoid(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int plateau)
extends Record
implements HeightProvider
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface HeightProvider
HeightProvider.BiasedToBottom, HeightProvider.Constant, HeightProvider.Factory, HeightProvider.Trapezoid, HeightProvider.Uniform, HeightProvider.VeryBiasedToBottomNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface HeightProvider
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionTrapezoid(VerticalAnchor minInclusive, VerticalAnchor 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.Returns the value of themaxInclusiverecord component.Returns 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 HeightProvider
toMinecraft
-
Constructor Details
-
Trapezoid
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
minInclusive
Returns the value of theminInclusiverecord component.- Returns:
- the value of the
minInclusiverecord component
-
maxInclusive
Returns the value of themaxInclusiverecord component.- Returns:
- the value of the
maxInclusiverecord component
-
plateau
public int plateau()Returns the value of theplateaurecord component.- Returns:
- the value of the
plateaurecord component
-