Record Class PlacementModifier.RandomOffsetPlacement
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacementModifier.RandomOffsetPlacement
- All Implemented Interfaces:
Wrapper, PlacementModifier
- Enclosing interface:
PlacementModifier
@AsOf("2.3.0")
public static record PlacementModifier.RandomOffsetPlacement(IntProvider xzSpread, IntProvider ySpread)
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
ConstructorsConstructorDescriptionRandomOffsetPlacement(IntProvider xzSpread, IntProvider ySpread) Creates an instance of aRandomOffsetPlacementrecord 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.final StringtoString()Returns a string representation of this record class.xzSpread()Returns the value of thexzSpreadrecord component.ySpread()Returns the value of theySpreadrecord component.Methods inherited from interface PlacementModifier
toMinecraft
-
Constructor Details
-
RandomOffsetPlacement
Creates an instance of aRandomOffsetPlacementrecord class.- Parameters:
xzSpread- the value for thexzSpreadrecord componentySpread- the value for theySpreadrecord 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 withObjects::equals(Object,Object). -
xzSpread
Returns the value of thexzSpreadrecord component.- Returns:
- the value of the
xzSpreadrecord component
-
ySpread
Returns the value of theySpreadrecord component.- Returns:
- the value of the
ySpreadrecord component
-