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.LevelSimulatedReader p_161887_, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> p_161888_, net.minecraft.util.RandomSource p_161889_, net.minecraft.core.BlockPos p_161890_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_161891_, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.block.state.BlockState> p_161892_)
     
    List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment>
    placeTrunk(net.minecraft.world.level.LevelSimulatedReader 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 net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?>
     

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

    getTreeHeight, isFree, 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.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.LevelSimulatedReader 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.LevelSimulatedReader p_161887_, BiConsumer<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> p_161888_, net.minecraft.util.RandomSource p_161889_, net.minecraft.core.BlockPos p_161890_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_161891_, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.block.state.BlockState> p_161892_)
      Overrides:
      placeLog in class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer