Record Class HeightProvider.BiasedToBottom
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.HeightProvider.BiasedToBottom
- All Implemented Interfaces:
Wrapper, HeightProvider
- Enclosing interface:
HeightProvider
@AsOf("2.3.0")
public static record HeightProvider.BiasedToBottom(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner)
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
ConstructorsConstructorDescriptionBiasedToBottom(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Creates an instance of aBiasedToBottomrecord 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.intinner()Returns the value of theinnerrecord component.Returns the value of themaxInclusiverecord component.Returns the value of theminInclusiverecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface HeightProvider
toMinecraft
-
Constructor Details
-
BiasedToBottom
Creates an instance of aBiasedToBottomrecord class.- Parameters:
minInclusive- the value for theminInclusiverecord componentmaxInclusive- the value for themaxInclusiverecord componentinner- the value for theinnerrecord 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
-
inner
public int inner()Returns the value of theinnerrecord component.- Returns:
- the value of the
innerrecord component
-