Class FancyTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.FancyTrunkPlacer
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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.TrunkPlacerbaseHeight, heightRandA, heightRandB, MAX_HEIGHT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.TrunkPlacergetTreeHeight, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts, validTreePos
- 
Field Details- 
CODEC
- 
TRUNK_HEIGHT_SCALEprivate static final double TRUNK_HEIGHT_SCALE- See Also:
 
- 
CLUSTER_DENSITY_MAGICprivate static final double CLUSTER_DENSITY_MAGIC- See Also:
 
- 
BRANCH_SLOPEprivate static final double BRANCH_SLOPE- See Also:
 
- 
BRANCH_LENGTH_MAGICprivate static final double BRANCH_LENGTH_MAGIC- See Also:
 
 
- 
- 
Constructor Details- 
FancyTrunkPlacerpublic FancyTrunkPlacer(int p_70094_, int p_70095_, int p_70096_) 
 
- 
- 
Method Details- 
type- Specified by:
- typein class- TrunkPlacer
 
- 
placeTrunkpublic 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 class- TrunkPlacer
 
- 
makeLimbprivate 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
- 
trimBranchesprivate boolean trimBranches(int p_70099_, int p_70100_) 
- 
makeBranchesprivate 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_) 
- 
treeShapeprivate static float treeShape(int p_70133_, int p_70134_) 
 
-