Class TestSaplingTrunkPlacer

java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
com.lightning.northstar.world.features.trunkplacers.TestSaplingTrunkPlacer

public class TestSaplingTrunkPlacer extends net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<TestSaplingTrunkPlacer>
     

    Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer

    baseHeight, heightRandA, heightRandB, MAX_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestSaplingTrunkPlacer(int baseHeight, int heightRandA, int heightRandB, net.minecraft.util.valueproviders.IntProvider extraBranchSteps, float placeBranchPerLogProbability, net.minecraft.util.valueproviders.IntProvider extraBranchLength, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> canGrowThrough, net.minecraft.util.valueproviders.IntProvider spinFactor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    placeBlackstone(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object,Object> function, net.minecraft.core.Direction dir)
     
    List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment>
    placeBranch(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, float bias, net.minecraft.core.Direction dir)
     
    void
    placeCap(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration)
     
    protected boolean
    placeLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object,Object> function, net.minecraft.core.Direction dir)
     
    protected boolean
    placeLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, net.minecraft.core.Direction dir)
     
    void
    placeOre(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration)
     
    List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment>
    placeSecondBranch(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, int dist, float bias, net.minecraft.core.Direction dir, net.minecraft.core.Direction offshootDir)
     
    protected boolean
    placeShroomlight(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object,Object> function, net.minecraft.core.Direction dir)
     
    List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment>
    placeTrunk(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration)
     
    protected net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?>
     
    protected boolean
    validTreePos(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.core.BlockPos pPos)
     

    Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer

    getTreeHeight, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • TestSaplingTrunkPlacer

      public TestSaplingTrunkPlacer(int baseHeight, int heightRandA, int heightRandB, net.minecraft.util.valueproviders.IntProvider extraBranchSteps, float placeBranchPerLogProbability, net.minecraft.util.valueproviders.IntProvider extraBranchLength, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> canGrowThrough, net.minecraft.util.valueproviders.IntProvider spinFactor)
  • Method Details

    • type

      protected net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()
      Specified by:
      type in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
    • placeTrunk

      public List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration)
      Specified by:
      placeTrunk in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
    • placeBranch

      public List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeBranch(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, float bias, net.minecraft.core.Direction dir)
    • placeSecondBranch

      public List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeSecondBranch(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, int dist, float bias, net.minecraft.core.Direction dir, net.minecraft.core.Direction offshootDir)
    • placeOre

      public void placeOre(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration)
    • placeCap

      public void placeCap(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration)
    • placeLog

      protected boolean placeLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, net.minecraft.core.Direction dir)
    • placeLog

      protected boolean placeLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object,Object> function, net.minecraft.core.Direction dir)
    • placeBlackstone

      protected boolean placeBlackstone(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object,Object> function, net.minecraft.core.Direction dir)
    • placeShroomlight

      protected boolean placeShroomlight(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object,Object> function, net.minecraft.core.Direction dir)
    • validTreePos

      protected boolean validTreePos(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.core.BlockPos pPos)
      Overrides:
      validTreePos in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer