Class HeightRangePlacement
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.HeightRangePlacement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<HeightRangePlacement> private final HeightProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(PlacementContext pContext, RandomSource pRandom, BlockPos pPos) static HeightRangePlacement
of
(HeightProvider pHeight) static HeightRangePlacement
triangle
(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive) type()
static HeightRangePlacement
uniform
(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive)
-
Field Details
-
CODEC
-
height
-
-
Constructor Details
-
HeightRangePlacement
-
-
Method Details
-
of
-
uniform
public static HeightRangePlacement uniform(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive) -
triangle
public static HeightRangePlacement triangle(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive) -
getPositions
public Stream<BlockPos> getPositions(PlacementContext pContext, RandomSource pRandom, BlockPos pPos) - Specified by:
getPositions
in classPlacementModifier
-
type
- Specified by:
type
in classPlacementModifier
-