public abstract class LargeTreeSaplingGenerator extends SaplingGenerator
Constructor and Description |
---|
LargeTreeSaplingGenerator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canGenerateLargeTree(BlockState state,
BlockView world,
BlockPos pos,
int x,
int z) |
protected abstract ConfiguredFeature<? extends 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) |
createTreeFeature
public boolean generate(ServerWorld serverWorld, ChunkGenerator<?> chunkGenerator, BlockPos blockPos, BlockState blockState, Random random)
generate
in class SaplingGenerator
@Nullable protected abstract ConfiguredFeature<? extends TreeFeatureConfig,?> createLargeTreeFeature(Random random)
public boolean generateLargeTree(ServerWorld serverWorld, ChunkGenerator<?> chunkGenerator, BlockPos blockPos, BlockState blockState, Random random, int int2, int int3)
public static boolean canGenerateLargeTree(BlockState state, BlockView world, BlockPos pos, int x, int z)