Package net.minecraft.block.sapling
Class LargeTreeSaplingGenerator
java.lang.Object
net.minecraft.block.sapling.SaplingGenerator
net.minecraft.block.sapling.LargeTreeSaplingGenerator
- Direct Known Subclasses:
DarkOakSaplingGenerator
,JungleSaplingGenerator
,SpruceSaplingGenerator
public abstract class LargeTreeSaplingGenerator extends SaplingGenerator
-
Constructor Summary
Constructors Constructor Description LargeTreeSaplingGenerator()
-
Method Summary
Modifier and Type Method Description static boolean
canGenerateLargeTree(BlockState state, BlockView world, BlockPos pos, int x, int z)
protected abstract ConfiguredFeature<TreeFeatureConfig,?>
createLargeTreeFeature(Random random)
boolean
generate(ServerWorld serverWorld, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockState blockState, Random random)
boolean
generateLargeTree(ServerWorld serverWorld, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockState blockState, Random random, int int2, int int3)
Methods inherited from class net.minecraft.block.sapling.SaplingGenerator
createTreeFeature
-
Constructor Details
-
LargeTreeSaplingGenerator
public LargeTreeSaplingGenerator()
-
-
Method Details
-
generate
public boolean generate(ServerWorld serverWorld, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockState blockState, Random random)- Overrides:
generate
in classSaplingGenerator
-
createLargeTreeFeature
@Nullable protected abstract ConfiguredFeature<TreeFeatureConfig,?> createLargeTreeFeature(Random random) -
generateLargeTree
public boolean generateLargeTree(ServerWorld serverWorld, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockState blockState, Random random, int int2, int int3) -
canGenerateLargeTree
public static boolean canGenerateLargeTree(BlockState state, BlockView world, BlockPos pos, int x, int z)
-