Record Class PlacementModifier.NoiseBasedCountPlacement
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacementModifier.NoiseBasedCountPlacement
- All Implemented Interfaces:
Wrapper, PlacementModifier
- Enclosing interface:
PlacementModifier
@AsOf("2.3.0")
public static record PlacementModifier.NoiseBasedCountPlacement(int noiseToCountRatio, double noiseFactor, double noiseOffset)
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
ConstructorsConstructorDescriptionNoiseBasedCountPlacement(int noiseToCountRatio, double noiseFactor, double noiseOffset) Creates an instance of aNoiseBasedCountPlacementrecord 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 thenoiseFactorrecord component.doubleReturns the value of thenoiseOffsetrecord component.intReturns the value of thenoiseToCountRatiorecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PlacementModifier
toMinecraft
-
Constructor Details
-
NoiseBasedCountPlacement
public NoiseBasedCountPlacement(int noiseToCountRatio, double noiseFactor, double noiseOffset) Creates an instance of aNoiseBasedCountPlacementrecord class.- Parameters:
noiseToCountRatio- the value for thenoiseToCountRatiorecord componentnoiseFactor- the value for thenoiseFactorrecord componentnoiseOffset- the value for thenoiseOffsetrecord 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. -
noiseToCountRatio
public int noiseToCountRatio()Returns the value of thenoiseToCountRatiorecord component.- Returns:
- the value of the
noiseToCountRatiorecord component
-
noiseFactor
public double noiseFactor()Returns the value of thenoiseFactorrecord component.- Returns:
- the value of the
noiseFactorrecord component
-
noiseOffset
public double noiseOffset()Returns the value of thenoiseOffsetrecord component.- Returns:
- the value of the
noiseOffsetrecord component
-