Package net.minecraft.world.gen.trunk
Class MegaJungleTrunkPlacer
java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.GiantTrunkPlacer
net.minecraft.world.gen.trunk.MegaJungleTrunkPlacer
public class MegaJungleTrunkPlacer extends GiantTrunkPlacer
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<MegaJungleTrunkPlacer>CODECFields inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
baseHeight, firstRandomHeight, secondRandomHeight -
Constructor Summary
Constructors Constructor Description MegaJungleTrunkPlacer(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> placedStates, BlockBox box, TreeFeatureConfig config)Generates the trunk blocks and return a list of tree nodes to place foliage aroundprotected TrunkPlacerType<?>getType()Methods inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
getAndSetState, getHeight, method_28904, setBlockState, setToDirt, trySetState
-
Field Details
-
CODEC
-
-
Constructor Details
-
MegaJungleTrunkPlacer
public MegaJungleTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight)
-
-
Method Details
-
getType
- Overrides:
getTypein classGiantTrunkPlacer
-
generate
public List<FoliagePlacer.TreeNode> generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> placedStates, BlockBox box, TreeFeatureConfig config)Generates the trunk blocks and return a list of tree nodes to place foliage around- Overrides:
generatein classGiantTrunkPlacer
-