Class MangroveRootPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
net.minecraft.world.level.levelgen.feature.rootplacers.MangroveRootPlacer
-
Field Summary
Modifier 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
ConstructorDescriptionMangroveRootPlacer
(IntProvider p_225817_, BlockStateProvider p_225818_, Optional<AboveRootPlacement> p_225819_, MangroveRootPlacement p_225820_) -
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 p_225851_, Direction p_225852_, RandomSource p_225853_, BlockPos p_225854_) private boolean
simulateRoots
(LevelSimulatedReader p_225823_, RandomSource p_225824_, BlockPos p_225825_, Direction p_225826_, BlockPos p_225827_, List<BlockPos> p_225828_, int p_225829_) 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 p_225817_, BlockStateProvider p_225818_, Optional<AboveRootPlacement> p_225819_, MangroveRootPlacement p_225820_)
-
-
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 p_225823_, RandomSource p_225824_, BlockPos p_225825_, Direction p_225826_, BlockPos p_225827_, List<BlockPos> p_225828_, int p_225829_) -
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
-