Class EnvironmentScanPlacement
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.EnvironmentScanPlacement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPredicate
static final com.mojang.serialization.Codec<EnvironmentScanPlacement>
private final Direction
private final int
private final BlockPredicate
-
Constructor Summary
ModifierConstructorDescriptionprivate
EnvironmentScanPlacement
(Direction p_191645_, BlockPredicate p_191646_, BlockPredicate p_191647_, int p_191648_) -
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(PlacementContext p_226336_, RandomSource p_226337_, BlockPos p_226338_) static EnvironmentScanPlacement
scanningFor
(Direction p_191654_, BlockPredicate p_191655_, int p_191656_) static EnvironmentScanPlacement
scanningFor
(Direction p_191658_, BlockPredicate p_191659_, BlockPredicate p_191660_, int p_191661_) type()
-
Field Details
-
directionOfSearch
-
targetCondition
-
allowedSearchCondition
-
maxSteps
private final int maxSteps -
CODEC
-
-
Constructor Details
-
EnvironmentScanPlacement
private EnvironmentScanPlacement(Direction p_191645_, BlockPredicate p_191646_, BlockPredicate p_191647_, int p_191648_)
-
-
Method Details
-
scanningFor
public static EnvironmentScanPlacement scanningFor(Direction p_191658_, BlockPredicate p_191659_, BlockPredicate p_191660_, int p_191661_) -
scanningFor
public static EnvironmentScanPlacement scanningFor(Direction p_191654_, BlockPredicate p_191655_, int p_191656_) -
getPositions
public Stream<BlockPos> getPositions(PlacementContext p_226336_, RandomSource p_226337_, BlockPos p_226338_) - Specified by:
getPositions
in classPlacementModifier
-
type
- Specified by:
type
in classPlacementModifier
-