Record Class PlacementModifier.NoiseThresholdCountPlacement
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacementModifier.NoiseThresholdCountPlacement
- All Implemented Interfaces:
Wrapper, PlacementModifier
- Enclosing interface:
PlacementModifier
@AsOf("2.3.0")
public static record PlacementModifier.NoiseThresholdCountPlacement(double noiseLevel, int belowNoise, int aboveNoise)
extends Record
implements PlacementModifier
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PlacementModifier
PlacementModifier.BiomeFilter, PlacementModifier.BlockPredicateFilter, PlacementModifier.CountPlacement, PlacementModifier.EnvironmentScanPlacement, PlacementModifier.Factory, PlacementModifier.FixedPlacement, PlacementModifier.HeightmapPlacement, PlacementModifier.HeightRangePlacement, PlacementModifier.InSquarePlacement, PlacementModifier.NoiseBasedCountPlacement, PlacementModifier.NoiseThresholdCountPlacement, PlacementModifier.RandomOffsetPlacement, PlacementModifier.RarityFilter, PlacementModifier.SurfaceRelativeThresholdFilter, PlacementModifier.SurfaceWaterDepthFilterNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface PlacementModifier
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionNoiseThresholdCountPlacement(double noiseLevel, int belowNoise, int aboveNoise) Creates an instance of aNoiseThresholdCountPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaboveNoiserecord component.intReturns the value of thebelowNoiserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thenoiseLevelrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PlacementModifier
toMinecraft
-
Constructor Details
-
NoiseThresholdCountPlacement
public NoiseThresholdCountPlacement(double noiseLevel, int belowNoise, int aboveNoise) Creates an instance of aNoiseThresholdCountPlacementrecord class.- Parameters:
noiseLevel- the value for thenoiseLevelrecord componentbelowNoise- the value for thebelowNoiserecord componentaboveNoise- the value for theaboveNoiserecord 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. -
noiseLevel
public double noiseLevel()Returns the value of thenoiseLevelrecord component.- Returns:
- the value of the
noiseLevelrecord component
-
belowNoise
public int belowNoise()Returns the value of thebelowNoiserecord component.- Returns:
- the value of the
belowNoiserecord component
-
aboveNoise
public int aboveNoise()Returns the value of theaboveNoiserecord component.- Returns:
- the value of the
aboveNoiserecord component
-