Class ThickBaseRootPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
com.petrolpark.core.world.levelgen.feature.tree.ThickBaseRootPlacer
public class ThickBaseRootPlacer
extends net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ThickBaseRootPlacer> protected final net.minecraft.world.level.block.Blockprotected final net.minecraft.util.valueproviders.FloatProviderFields inherited from class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
aboveRootPlacement, rootProvider, trunkOffsetY -
Constructor Summary
ConstructorsConstructorDescriptionThickBaseRootPlacer(net.minecraft.util.valueproviders.IntProvider trunkOffset, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootProvider, Optional<net.minecraft.world.level.levelgen.feature.rootplacers.AboveRootPlacement> aboveRootPlacement, net.minecraft.util.valueproviders.FloatProvider width, net.minecraft.world.level.block.Block sapling) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blocknet.minecraft.util.valueproviders.FloatProvidergetWidth()protected voidplaceRoot(net.minecraft.world.level.LevelSimulatedReader level, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> blockSetter, net.minecraft.util.RandomSource random, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfig, net.minecraft.core.BlockPos origin) booleanplaceRoots(net.minecraft.world.level.LevelSimulatedReader level, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> blockSetter, net.minecraft.util.RandomSource random, net.minecraft.core.BlockPos origin, net.minecraft.core.BlockPos trunkOrigin, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfig) net.minecraft.world.level.block.state.BlockStaterotateToFaceOrigin(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos origin) protected net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacerType<ThickBaseRootPlacer> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
canPlaceRoot, getPotentiallyWaterloggedState, getTrunkOrigin, placeRoot, rootPlacerParts
-
Field Details
-
CODEC
-
width
protected final net.minecraft.util.valueproviders.FloatProvider width -
sapling
protected final net.minecraft.world.level.block.Block sapling
-
-
Constructor Details
-
ThickBaseRootPlacer
public ThickBaseRootPlacer(net.minecraft.util.valueproviders.IntProvider trunkOffset, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootProvider, Optional<net.minecraft.world.level.levelgen.feature.rootplacers.AboveRootPlacement> aboveRootPlacement, net.minecraft.util.valueproviders.FloatProvider width, net.minecraft.world.level.block.Block sapling)
-
-
Method Details
-
getWidth
public net.minecraft.util.valueproviders.FloatProvider getWidth() -
getSapling
public net.minecraft.world.level.block.Block getSapling() -
placeRoots
public boolean placeRoots(@Nonnull net.minecraft.world.level.LevelSimulatedReader level, @Nonnull BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> blockSetter, @Nonnull net.minecraft.util.RandomSource random, @Nonnull net.minecraft.core.BlockPos origin, @Nonnull net.minecraft.core.BlockPos trunkOrigin, @Nonnull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfig) - Specified by:
placeRootsin classnet.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
-
type
protected net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacerType<ThickBaseRootPlacer> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
-
placeRoot
protected void placeRoot(@Nonnull net.minecraft.world.level.LevelSimulatedReader level, @Nonnull BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> blockSetter, @Nonnull net.minecraft.util.RandomSource random, @Nonnull net.minecraft.core.BlockPos pos, @Nonnull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfig, net.minecraft.core.BlockPos origin) -
rotateToFaceOrigin
public net.minecraft.world.level.block.state.BlockState rotateToFaceOrigin(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos origin)
-