Record Class PlacementModifier.SurfaceRelativeThresholdFilter
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacementModifier.SurfaceRelativeThresholdFilter
- All Implemented Interfaces:
Wrapper, PlacementModifier
- Enclosing interface:
PlacementModifier
@AsOf("2.3.0")
public static record PlacementModifier.SurfaceRelativeThresholdFilter(HeightmapType heightmap, int minInclusive, int maxInclusive)
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
ConstructorsConstructorDescriptionSurfaceRelativeThresholdFilter(HeightmapType heightmap, int minInclusive, int maxInclusive) Creates an instance of aSurfaceRelativeThresholdFilterrecord 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.Returns the value of theheightmaprecord component.intReturns the value of themaxInclusiverecord component.intReturns the value of theminInclusiverecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PlacementModifier
toMinecraft
-
Constructor Details
-
SurfaceRelativeThresholdFilter
@AsOf("2.3.0") public SurfaceRelativeThresholdFilter(HeightmapType heightmap, int minInclusive, int maxInclusive) Creates an instance of aSurfaceRelativeThresholdFilterrecord class.- Parameters:
heightmap- the value for theheightmaprecord componentminInclusive- the value for theminInclusiverecord componentmaxInclusive- the value for themaxInclusiverecord 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. -
heightmap
Returns the value of theheightmaprecord component.- Returns:
- the value of the
heightmaprecord component
-
minInclusive
public int minInclusive()Returns the value of theminInclusiverecord component.- Returns:
- the value of the
minInclusiverecord component
-
maxInclusive
public int maxInclusive()Returns the value of themaxInclusiverecord component.- Returns:
- the value of the
maxInclusiverecord component
-