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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<ThickBaseRootPlacer>
     
    protected final net.minecraft.world.level.block.Block
     
    protected final net.minecraft.util.valueproviders.FloatProvider
     

    Fields inherited from class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer

    aboveRootPlacement, rootProvider, trunkOffsetY
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.Block
     
    net.minecraft.util.valueproviders.FloatProvider
     
    protected void
    placeRoot(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)
     
    boolean
    placeRoots(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.BlockState
    rotateToFaceOrigin(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>
     

    Methods inherited from class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer

    canPlaceRoot, getPotentiallyWaterloggedState, getTrunkOrigin, placeRoot, rootPlacerParts

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<ThickBaseRootPlacer> 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:
      placeRoots in class net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
    • type

      protected net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacerType<ThickBaseRootPlacer> type()
      Specified by:
      type in class net.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)