Class BaobabTrunkPlacer

java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.frozenblock.wilderwild.worldgen.impl.trunk.BaobabTrunkPlacer

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

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
    static final float
     
    static final com.mojang.serialization.Codec<BaobabTrunkPlacer>
     
    protected final net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
     
    static final float
     

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

    baseHeight, heightRandA, heightRandB, MAX_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaobabTrunkPlacer(int i, int j, int k, @NotNull net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider insideState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static <P extends BaobabTrunkPlacer>
    @NotNull com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer,net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider>
    baobabCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> builder)
     
    @NotNull List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment>
    placeTrunk(@NotNull net.minecraft.world.level.LevelSimulatedReader level, @NotNull BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> replacer, @NotNull net.minecraft.util.RandomSource random, int height, @NotNull net.minecraft.core.BlockPos startPos, @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
    Baobab Tree Generator Made By LiukRast (Yes im alive!) Process: 1- Generate the main trunk (Just a big parallelepiped) 2- Add Roots (External Vertical Parts) - Step 1: Choose how many of them should be generated (Make a list and then remove random members) - Step 2: Generate them 3- Add Branches and Foliage Easy, I guess ._.
    protected @NotNull net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?>
     

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

    getTreeHeight, isDirt, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts, validTreePos

    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.Codec<BaobabTrunkPlacer> CODEC
    • SIDE_DECORATION_CHANCE

      public static final float SIDE_DECORATION_CHANCE
      See Also:
    • BRANCH_CHANCE

      public static final float BRANCH_CHANCE
      See Also:
    • BRANCH_CHANCE_TOP_ADDITIONAL

      public static final float BRANCH_CHANCE_TOP_ADDITIONAL
      See Also:
    • insideState

      protected final net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider insideState
  • Constructor Details

    • BaobabTrunkPlacer

      public BaobabTrunkPlacer(int i, int j, int k, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider insideState)
  • Method Details

    • baobabCodec

      protected static <P extends BaobabTrunkPlacer> @NotNull com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer,net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider> baobabCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> builder)
    • type

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

      @NotNull public @NotNull List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(@NotNull @NotNull net.minecraft.world.level.LevelSimulatedReader level, @NotNull @NotNull BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> replacer, @NotNull @NotNull net.minecraft.util.RandomSource random, int height, @NotNull @NotNull net.minecraft.core.BlockPos startPos, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
      Baobab Tree Generator Made By LiukRast (Yes im alive!) Process: 1- Generate the main trunk (Just a big parallelepiped) 2- Add Roots (External Vertical Parts) - Step 1: Choose how many of them should be generated (Make a list and then remove random members) - Step 2: Generate them 3- Add Branches and Foliage Easy, I guess ._.
      Specified by:
      placeTrunk in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer