Package net.minecraft.block.sapling
Class SaplingGenerator
java.lang.Object
net.minecraft.block.sapling.SaplingGenerator
- Direct Known Subclasses:
AcaciaSaplingGenerator
,BirchSaplingGenerator
,LargeTreeSaplingGenerator
,OakSaplingGenerator
public abstract class SaplingGenerator extends Object
-
Constructor Summary
Constructors Constructor Description SaplingGenerator()
-
Method Summary
Modifier and Type Method Description protected abstract ConfiguredFeature<TreeFeatureConfig,?>
createTreeFeature(Random random, boolean bool)
boolean
generate(ServerWorld serverWorld, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockState blockState, Random random)
private boolean
method_24282(WorldAccess worldAccess, BlockPos blockPos)
-
Constructor Details
-
SaplingGenerator
public SaplingGenerator()
-
-
Method Details
-
createTreeFeature
@Nullable protected abstract ConfiguredFeature<TreeFeatureConfig,?> createTreeFeature(Random random, boolean bool) -
generate
public boolean generate(ServerWorld serverWorld, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockState blockState, Random random) -
method_24282
-