Class FancyTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.FancyTrunkPlacer
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate static final doubleprivate static final doublestatic final com.mojang.serialization.Codec<FancyTrunkPlacer>private static final doubleFields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate Direction.AxisgetLogAxis(BlockPos p_70130_, BlockPos p_70131_) private intprivate voidmakeBranches(LevelSimulatedReader p_226100_, BiConsumer<BlockPos, BlockState> p_226101_, RandomSource p_226102_, int p_226103_, BlockPos p_226104_, List<FancyTrunkPlacer.FoliageCoords> p_226105_, TreeConfiguration p_226106_) private booleanmakeLimb(LevelSimulatedReader p_226108_, BiConsumer<BlockPos, BlockState> p_226109_, RandomSource p_226110_, BlockPos p_226111_, BlockPos p_226112_, boolean p_226113_, TreeConfiguration p_226114_) placeTrunk(LevelSimulatedReader p_226093_, BiConsumer<BlockPos, BlockState> p_226094_, RandomSource p_226095_, int p_226096_, BlockPos p_226097_, TreeConfiguration p_226098_) private static floattreeShape(int p_70133_, int p_70134_) private booleantrimBranches(int p_70099_, int p_70100_) protected TrunkPlacerType<?>type()Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getTreeHeight, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts, validTreePos 
- 
Field Details
- 
CODEC
 - 
TRUNK_HEIGHT_SCALE
private static final double TRUNK_HEIGHT_SCALE- See Also:
 
 - 
CLUSTER_DENSITY_MAGIC
private static final double CLUSTER_DENSITY_MAGIC- See Also:
 
 - 
BRANCH_SLOPE
private static final double BRANCH_SLOPE- See Also:
 
 - 
BRANCH_LENGTH_MAGIC
private static final double BRANCH_LENGTH_MAGIC- See Also:
 
 
 - 
 - 
Constructor Details
- 
FancyTrunkPlacer
public FancyTrunkPlacer(int p_70094_, int p_70095_, int p_70096_)  
 - 
 - 
Method Details
- 
type
- Specified by:
 typein classTrunkPlacer
 - 
placeTrunk
public List<FoliagePlacer.FoliageAttachment> placeTrunk(LevelSimulatedReader p_226093_, BiConsumer<BlockPos, BlockState> p_226094_, RandomSource p_226095_, int p_226096_, BlockPos p_226097_, TreeConfiguration p_226098_) - Specified by:
 placeTrunkin classTrunkPlacer
 - 
makeLimb
private boolean makeLimb(LevelSimulatedReader p_226108_, BiConsumer<BlockPos, BlockState> p_226109_, RandomSource p_226110_, BlockPos p_226111_, BlockPos p_226112_, boolean p_226113_, TreeConfiguration p_226114_)  - 
getSteps
 - 
getLogAxis
 - 
trimBranches
private boolean trimBranches(int p_70099_, int p_70100_)  - 
makeBranches
private void makeBranches(LevelSimulatedReader p_226100_, BiConsumer<BlockPos, BlockState> p_226101_, RandomSource p_226102_, int p_226103_, BlockPos p_226104_, List<FancyTrunkPlacer.FoliageCoords> p_226105_, TreeConfiguration p_226106_)  - 
treeShape
private static float treeShape(int p_70133_, int p_70134_)  
 -