Class HeightRangePlacement
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.HeightRangePlacement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<HeightRangePlacement> private final HeightProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(PlacementContext p_226340_, RandomSource p_226341_, BlockPos p_226342_) static HeightRangePlacement
of
(HeightProvider p_191684_) static HeightRangePlacement
triangle
(VerticalAnchor p_191693_, VerticalAnchor p_191694_) type()
static HeightRangePlacement
uniform
(VerticalAnchor p_191681_, VerticalAnchor p_191682_)
-
Field Details
-
CODEC
-
height
-
-
Constructor Details
-
HeightRangePlacement
-
-
Method Details
-
of
-
uniform
-
triangle
-
getPositions
public Stream<BlockPos> getPositions(PlacementContext p_226340_, RandomSource p_226341_, BlockPos p_226342_) - Specified by:
getPositions
in classPlacementModifier
-
type
- Specified by:
type
in classPlacementModifier
-