Class FallenLargeTrunkPlacer

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<FallenLargeTrunkPlacer>
     
    final int
     
    final int
     
    final float
     

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

    baseHeight, heightRandA, heightRandB, MAX_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    FallenLargeTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, float successInWaterChance)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static <P extends FallenLargeTrunkPlacer>
    @NotNull com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer,Float>
    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<FallenLargeTrunkPlacer> CODEC
    • successInWaterChance

      public final float successInWaterChance
    • minHeight

      public final int minHeight
    • maxHeight

      public final int maxHeight
  • Constructor Details

    • FallenLargeTrunkPlacer

      public FallenLargeTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, float successInWaterChance)
  • Method Details

    • fallenTrunkCodec

      @Contract("_ -> new") protected static <P extends FallenLargeTrunkPlacer> @NotNull com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer,Float> 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