Package net.minecraft.world.gen.trunk
Class GiantTrunkPlacer
java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.GiantTrunkPlacer
- Direct Known Subclasses:
MegaJungleTrunkPlacer
public class GiantTrunkPlacer extends TrunkPlacer
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<GiantTrunkPlacer>CODECFields inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
baseHeight, field_24972, firstRandomHeight, secondRandomHeight -
Constructor Summary
Constructors Constructor Description GiantTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) -
Method Summary
Modifier and Type Method Description List<FoliagePlacer.TreeNode>generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig)Generates the trunk blocks and return a list of tree nodes to place foliage aroundprivate static voidmethod_27399(ModifiableTestableWorld modifiableTestableWorld, Random random, BlockPos.Mutable mutable, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig, BlockPos blockPos, int int2, int int3, int int4)protected TrunkPlacerType<?>method_28903()Methods inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
getHeight, method_27400, method_27401, method_27402, method_27404, method_28904
-
Field Details
-
Constructor Details
-
GiantTrunkPlacer
public GiantTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight)
-
-
Method Details
-
method_28903
- Specified by:
method_28903in classTrunkPlacer
-
generate
public List<FoliagePlacer.TreeNode> generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig)Generates the trunk blocks and return a list of tree nodes to place foliage around- Specified by:
generatein classTrunkPlacer
-
method_27399
private static void method_27399(ModifiableTestableWorld modifiableTestableWorld, Random random, BlockPos.Mutable mutable, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig, BlockPos blockPos, int int2, int int3, int int4)
-