Record Class PlacementModifier.EnvironmentScanPlacement
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacementModifier.EnvironmentScanPlacement
- All Implemented Interfaces:
Wrapper, PlacementModifier
- Enclosing interface:
PlacementModifier
@AsOf("2.3.0")
public static record PlacementModifier.EnvironmentScanPlacement(BlockFace directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps)
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
ConstructorsConstructorDescriptionEnvironmentScanPlacement(BlockFace directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps) Creates an instance of aEnvironmentScanPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedSearchConditionrecord component.Returns the value of thedirectionOfSearchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxSteps()Returns the value of themaxStepsrecord component.Returns the value of thetargetConditionrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PlacementModifier
toMinecraft
-
Constructor Details
-
EnvironmentScanPlacement
@AsOf("2.3.0") public EnvironmentScanPlacement(BlockFace directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps) Creates an instance of aEnvironmentScanPlacementrecord class.- Parameters:
directionOfSearch- the value for thedirectionOfSearchrecord componenttargetCondition- the value for thetargetConditionrecord componentallowedSearchCondition- the value for theallowedSearchConditionrecord componentmaxSteps- the value for themaxStepsrecord 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. -
directionOfSearch
Returns the value of thedirectionOfSearchrecord component.- Returns:
- the value of the
directionOfSearchrecord component
-
targetCondition
Returns the value of thetargetConditionrecord component.- Returns:
- the value of the
targetConditionrecord component
-
allowedSearchCondition
Returns the value of theallowedSearchConditionrecord component.- Returns:
- the value of the
allowedSearchConditionrecord component
-
maxSteps
public int maxSteps()Returns the value of themaxStepsrecord component.- Returns:
- the value of the
maxStepsrecord component
-