Class TrunkPlacerMenril

java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
org.cyclops.integrateddynamics.world.gen.trunkplacer.TrunkPlacerMenril

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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<TrunkPlacerMenril>
     
    protected final int
     

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

    baseHeight, heightRandA, heightRandB, MAX_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrunkPlacerMenril(int baseHeight, int heightRandA, int heightRandB, int heightWider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    placeLog(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> transformer)
     
    List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment>
    placeTrunk(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, int height, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
     
    protected void
    setDirtAt(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
     
    protected net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?>
     

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

    getBaseHeight, getTreeHeight, isFree, placeBelowTrunkBlock, placeLog, placeLogIfFree, trunkPlacerParts, validTreePos

    Methods inherited from class Object

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

    • CODEC

      public static final com.mojang.serialization.MapCodec<TrunkPlacerMenril> CODEC
    • heightWider

      protected final int heightWider
  • Constructor Details

    • TrunkPlacerMenril

      public TrunkPlacerMenril(int baseHeight, int heightRandA, int heightRandB, int heightWider)
  • 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.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, int height, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
      Specified by:
      placeTrunk in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
    • placeLog

      protected boolean placeLog(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> transformer)
      Overrides:
      placeLog in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
    • setDirtAt

      protected void setDirtAt(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)