Class FancyTrunkPlacer
- java.lang.Object
-
- net.minecraft.world.gen.trunkplacer.AbstractTrunkPlacer
-
- net.minecraft.world.gen.trunkplacer.FancyTrunkPlacer
-
public class FancyTrunkPlacer extends AbstractTrunkPlacer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FancyTrunkPlacer.Foliage
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FancyTrunkPlacer>
CODEC
-
Fields inherited from class net.minecraft.world.gen.trunkplacer.AbstractTrunkPlacer
baseHeight, heightRandA, heightRandB
-
-
Constructor Summary
Constructors Constructor Description FancyTrunkPlacer(int p_i232054_1_, int p_i232054_2_, int p_i232054_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Direction.Axis
getLogAxis(BlockPos p_236889_1_, BlockPos p_236889_2_)
private int
getSteps(BlockPos p_236888_1_)
private void
makeBranches(IWorldGenerationReader p_236886_1_, java.util.Random p_236886_2_, int p_236886_3_, BlockPos p_236886_4_, java.util.List<FancyTrunkPlacer.Foliage> p_236886_5_, java.util.Set<BlockPos> p_236886_6_, MutableBoundingBox p_236886_7_, BaseTreeFeatureConfig p_236886_8_)
private boolean
makeLimb(IWorldGenerationReader p_236887_1_, java.util.Random p_236887_2_, BlockPos p_236887_3_, BlockPos p_236887_4_, boolean p_236887_5_, java.util.Set<BlockPos> p_236887_6_, MutableBoundingBox p_236887_7_, BaseTreeFeatureConfig p_236887_8_)
java.util.List<FoliagePlacer.Foliage>
placeTrunk(IWorldGenerationReader p_230382_1_, java.util.Random p_230382_2_, int p_230382_3_, BlockPos p_230382_4_, java.util.Set<BlockPos> p_230382_5_, MutableBoundingBox p_230382_6_, BaseTreeFeatureConfig p_230382_7_)
private float
treeShape(int p_236890_1_, int p_236890_2_)
private boolean
trimBranches(int p_236885_1_, int p_236885_2_)
protected TrunkPlacerType<?>
type()
-
Methods inherited from class net.minecraft.world.gen.trunkplacer.AbstractTrunkPlacer
getTreeHeight, placeLog, placeLogIfFree, setBlock, setDirtAt, trunkPlacerParts
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<FancyTrunkPlacer> CODEC
-
-
Method Detail
-
type
protected TrunkPlacerType<?> type()
- Specified by:
type
in classAbstractTrunkPlacer
-
placeTrunk
public java.util.List<FoliagePlacer.Foliage> placeTrunk(IWorldGenerationReader p_230382_1_, java.util.Random p_230382_2_, int p_230382_3_, BlockPos p_230382_4_, java.util.Set<BlockPos> p_230382_5_, MutableBoundingBox p_230382_6_, BaseTreeFeatureConfig p_230382_7_)
- Specified by:
placeTrunk
in classAbstractTrunkPlacer
-
makeLimb
private boolean makeLimb(IWorldGenerationReader p_236887_1_, java.util.Random p_236887_2_, BlockPos p_236887_3_, BlockPos p_236887_4_, boolean p_236887_5_, java.util.Set<BlockPos> p_236887_6_, MutableBoundingBox p_236887_7_, BaseTreeFeatureConfig p_236887_8_)
-
getSteps
private int getSteps(BlockPos p_236888_1_)
-
getLogAxis
private Direction.Axis getLogAxis(BlockPos p_236889_1_, BlockPos p_236889_2_)
-
trimBranches
private boolean trimBranches(int p_236885_1_, int p_236885_2_)
-
makeBranches
private void makeBranches(IWorldGenerationReader p_236886_1_, java.util.Random p_236886_2_, int p_236886_3_, BlockPos p_236886_4_, java.util.List<FancyTrunkPlacer.Foliage> p_236886_5_, java.util.Set<BlockPos> p_236886_6_, MutableBoundingBox p_236886_7_, BaseTreeFeatureConfig p_236886_8_)
-
treeShape
private float treeShape(int p_236890_1_, int p_236890_2_)
-
-