Class MangroveRootPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
net.minecraft.world.level.levelgen.feature.rootplacers.MangroveRootPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<MangroveRootPlacer> private final MangroveRootPlacement
static final int
static final int
Fields inherited from class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
aboveRootPlacement, rootProvider, trunkOffsetY
-
Constructor Summary
ConstructorsConstructorDescriptionMangroveRootPlacer
(IntProvider pTrunkOffset, BlockStateProvider pRootProvider, Optional<AboveRootPlacement> pAboveRootPlacement, MangroveRootPlacement pMangroveRootPlacement) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPlaceRoot
(LevelSimulatedReader p_225831_, BlockPos p_225832_) protected void
placeRoot
(LevelSimulatedReader p_225834_, BiConsumer<BlockPos, BlockState> p_225835_, RandomSource p_225836_, BlockPos p_225837_, TreeConfiguration p_225838_) boolean
placeRoots
(LevelSimulatedReader p_225840_, BiConsumer<BlockPos, BlockState> p_225841_, RandomSource p_225842_, BlockPos p_225843_, BlockPos p_225844_, TreeConfiguration p_225845_) potentialRootPositions
(BlockPos pPos, Direction pDirection, RandomSource pRandom, BlockPos pTrunkOrigin) private boolean
simulateRoots
(LevelSimulatedReader pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection, BlockPos pTrunkOrigin, List<BlockPos> pRoots, int pLength) protected RootPlacerType
<?> type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
getPotentiallyWaterloggedState, getTrunkOrigin, rootPlacerParts
-
Field Details
-
ROOT_WIDTH_LIMIT
public static final int ROOT_WIDTH_LIMIT- See Also:
-
ROOT_LENGTH_LIMIT
public static final int ROOT_LENGTH_LIMIT- See Also:
-
CODEC
-
mangroveRootPlacement
-
-
Constructor Details
-
MangroveRootPlacer
public MangroveRootPlacer(IntProvider pTrunkOffset, BlockStateProvider pRootProvider, Optional<AboveRootPlacement> pAboveRootPlacement, MangroveRootPlacement pMangroveRootPlacement)
-
-
Method Details
-
placeRoots
public boolean placeRoots(LevelSimulatedReader p_225840_, BiConsumer<BlockPos, BlockState> p_225841_, RandomSource p_225842_, BlockPos p_225843_, BlockPos p_225844_, TreeConfiguration p_225845_) - Specified by:
placeRoots
in classRootPlacer
-
simulateRoots
private boolean simulateRoots(LevelSimulatedReader pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection, BlockPos pTrunkOrigin, List<BlockPos> pRoots, int pLength) -
potentialRootPositions
-
canPlaceRoot
- Overrides:
canPlaceRoot
in classRootPlacer
-
placeRoot
protected void placeRoot(LevelSimulatedReader p_225834_, BiConsumer<BlockPos, BlockState> p_225835_, RandomSource p_225836_, BlockPos p_225837_, TreeConfiguration p_225838_) - Overrides:
placeRoot
in classRootPlacer
-
type
- Specified by:
type
in classRootPlacer
-