Record Class SurfaceCondition.Noise
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.surface.SurfaceCondition.Noise
- All Implemented Interfaces:
Wrapper, SurfaceCondition
- Enclosing interface:
SurfaceCondition
@AsOf("2.4.0")
public static record SurfaceCondition.Noise(ResourceKey noise, double minThreshold, double maxThreshold)
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
ConstructorsConstructorDescriptionNoise(ResourceKey noise, double minThreshold, double maxThreshold) Creates an instance of aNoiserecord 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.doubleReturns the value of themaxThresholdrecord component.doubleReturns the value of theminThresholdrecord component.noise()Returns the value of thenoiserecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SurfaceCondition
toMinecraft
-
Constructor Details
-
Noise
Creates an instance of aNoiserecord class.- Parameters:
noise- the value for thenoiserecord componentminThreshold- the value for theminThresholdrecord componentmaxThreshold- the value for themaxThresholdrecord 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. -
noise
Returns the value of thenoiserecord component.- Returns:
- the value of the
noiserecord component
-
minThreshold
public double minThreshold()Returns the value of theminThresholdrecord component.- Returns:
- the value of the
minThresholdrecord component
-
maxThreshold
public double maxThreshold()Returns the value of themaxThresholdrecord component.- Returns:
- the value of the
maxThresholdrecord component
-