Class FallenWithLogsTrunkPlacer

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

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

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

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

    baseHeight, heightRandA, heightRandB, MAX_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    FallenWithLogsTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hollowedState, float branchChance, float successInWaterChance, float hollowedLogProbability, @NotNull net.minecraft.util.valueproviders.IntProvider maxBranchCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static <P extends FallenWithLogsTrunkPlacer>
    @NotNull com.mojang.datafixers.Products.P8<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer,net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider,Float,Float,Float,net.minecraft.util.valueproviders.IntProvider>
    fallenTrunkCodec(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)
     
    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<FallenWithLogsTrunkPlacer> CODEC
    • hollowedState

      public final net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hollowedState
    • branchChance

      public final float branchChance
    • maxBranchCount

      public final net.minecraft.util.valueproviders.IntProvider maxBranchCount
    • hollowedLogChance

      public final float hollowedLogChance
    • successInWaterChance

      public final float successInWaterChance
  • Constructor Details

    • FallenWithLogsTrunkPlacer

      public FallenWithLogsTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hollowedState, float branchChance, float successInWaterChance, float hollowedLogProbability, @NotNull @NotNull net.minecraft.util.valueproviders.IntProvider maxBranchCount)
  • Method Details

    • fallenTrunkCodec

      @Contract("_ -> new") protected static <P extends FallenWithLogsTrunkPlacer> @NotNull com.mojang.datafixers.Products.P8<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer,net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider,Float,Float,Float,net.minecraft.util.valueproviders.IntProvider> fallenTrunkCodec(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)
      Specified by:
      placeTrunk in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer