Class RandomOffsetPlacement
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.RandomOffsetPlacement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<RandomOffsetPlacement> private final IntProvider
private final IntProvider
-
Constructor Summary
ModifierConstructorDescriptionprivate
RandomOffsetPlacement
(IntProvider p_191875_, IntProvider p_191876_) -
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(PlacementContext p_226393_, RandomSource p_226394_, BlockPos p_226395_) static RandomOffsetPlacement
horizontal
(IntProvider p_191892_) static RandomOffsetPlacement
of
(IntProvider p_191880_, IntProvider p_191881_) type()
static RandomOffsetPlacement
vertical
(IntProvider p_191878_)
-
Field Details
-
CODEC
-
xzSpread
-
ySpread
-
-
Constructor Details
-
RandomOffsetPlacement
-
-
Method Details
-
of
-
vertical
-
horizontal
-
getPositions
public Stream<BlockPos> getPositions(PlacementContext p_226393_, RandomSource p_226394_, BlockPos p_226395_) - Specified by:
getPositions
in classPlacementModifier
-
type
- Specified by:
type
in classPlacementModifier
-