Record Class SurfaceCondition.StoneDepth
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.surface.SurfaceCondition.StoneDepth
- All Implemented Interfaces:
Wrapper, SurfaceCondition
- Enclosing interface:
SurfaceCondition
@AsOf("2.4.0")
public static record SurfaceCondition.StoneDepth(int offset, boolean addSurfaceDepth, int secondaryDepthRange, SurfaceCondition.CaveSurface surfaceType)
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
ConstructorsConstructorDescriptionStoneDepth(int offset, boolean addSurfaceDepth, int secondaryDepthRange, SurfaceCondition.CaveSurface surfaceType) Creates an instance of aStoneDepthrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaddSurfaceDepthrecord 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 thesecondaryDepthRangerecord component.Returns the value of thesurfaceTyperecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SurfaceCondition
toMinecraft
-
Constructor Details
-
StoneDepth
public StoneDepth(int offset, boolean addSurfaceDepth, int secondaryDepthRange, SurfaceCondition.CaveSurface surfaceType) Creates an instance of aStoneDepthrecord class.- Parameters:
offset- the value for theoffsetrecord componentaddSurfaceDepth- the value for theaddSurfaceDepthrecord componentsecondaryDepthRange- the value for thesecondaryDepthRangerecord componentsurfaceType- the value for thesurfaceTyperecord 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. -
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
addSurfaceDepth
public boolean addSurfaceDepth()Returns the value of theaddSurfaceDepthrecord component.- Returns:
- the value of the
addSurfaceDepthrecord component
-
secondaryDepthRange
public int secondaryDepthRange()Returns the value of thesecondaryDepthRangerecord component.- Returns:
- the value of the
secondaryDepthRangerecord component
-
surfaceType
Returns the value of thesurfaceTyperecord component.- Returns:
- the value of the
surfaceTyperecord component
-