Record Class SurfaceCondition.VerticalGradient
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.surface.SurfaceCondition.VerticalGradient
- All Implemented Interfaces:
Wrapper, SurfaceCondition
- Enclosing interface:
SurfaceCondition
@AsOf("2.4.0")
public static record SurfaceCondition.VerticalGradient(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove)
extends Record
implements SurfaceCondition
- Since:
- 2.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface SurfaceCondition
SurfaceCondition.AbovePreliminarySurface, SurfaceCondition.Biome, SurfaceCondition.CaveSurface, SurfaceCondition.Factory, SurfaceCondition.Hole, SurfaceCondition.Noise, SurfaceCondition.Not, SurfaceCondition.Steep, SurfaceCondition.StoneDepth, SurfaceCondition.Temperature, SurfaceCondition.VerticalGradient, SurfaceCondition.Water, SurfaceCondition.YCheckNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface SurfaceCondition
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionVerticalGradient(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove) Creates an instance of aVerticalGradientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefalseAtAndAboverecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therandomNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrueAtAndBelowrecord component.Methods inherited from interface SurfaceCondition
toMinecraft
-
Constructor Details
-
VerticalGradient
public VerticalGradient(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove) Creates an instance of aVerticalGradientrecord class.- Parameters:
randomName- the value for therandomNamerecord componenttrueAtAndBelow- the value for thetrueAtAndBelowrecord componentfalseAtAndAbove- the value for thefalseAtAndAboverecord 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 withObjects::equals(Object,Object). -
randomName
Returns the value of therandomNamerecord component.- Returns:
- the value of the
randomNamerecord component
-
trueAtAndBelow
Returns the value of thetrueAtAndBelowrecord component.- Returns:
- the value of the
trueAtAndBelowrecord component
-
falseAtAndAbove
Returns the value of thefalseAtAndAboverecord component.- Returns:
- the value of the
falseAtAndAboverecord component
-