Record Class SurfaceCondition.Water
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.surface.SurfaceCondition.Water
- All Implemented Interfaces:
Wrapper, SurfaceCondition
- Enclosing interface:
SurfaceCondition
@AsOf("2.4.0")
public static record SurfaceCondition.Water(int offset, int surfaceDepthMultiplier, boolean addStoneDepth)
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
ConstructorsConstructorDescriptionWater(int offset, int surfaceDepthMultiplier, boolean addStoneDepth) Creates an instance of aWaterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaddStoneDepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.intReturns the value of thesurfaceDepthMultiplierrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SurfaceCondition
toMinecraft
-
Constructor Details
-
Water
public Water(int offset, int surfaceDepthMultiplier, boolean addStoneDepth) Creates an instance of aWaterrecord class.- Parameters:
offset- the value for theoffsetrecord componentsurfaceDepthMultiplier- the value for thesurfaceDepthMultiplierrecord componentaddStoneDepth- the value for theaddStoneDepthrecord 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. -
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
surfaceDepthMultiplier
public int surfaceDepthMultiplier()Returns the value of thesurfaceDepthMultiplierrecord component.- Returns:
- the value of the
surfaceDepthMultiplierrecord component
-
addStoneDepth
public boolean addStoneDepth()Returns the value of theaddStoneDepthrecord component.- Returns:
- the value of the
addStoneDepthrecord component
-