public class TreeFeature extends Feature<TreeFeatureConfig>
BAMBOO, BASALT_COLUMNS, BASALT_PILLAR, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DECORATED, DECORATED_FLOWER, DELTA_FEATURE, DESERT_WELL, DISK, EMERALD_ORE, END_GATEWAY, END_ISLAND, END_SPIKE, FILL_LAYER, FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GLOWSTONE_BLOB, HUGE_BROWN_MUSHROOM, HUGE_FUNGUS, HUGE_RED_MUSHROOM, ICE_PATCH, ICE_SPIKE, ICEBERG, KELP, LAKE, MONSTER_ROOM, NETHER_FOREST_VEGETATION, NETHERRACK_REPLACE_BLOBS, NO_OP, NO_SURFACE_ORE, ORE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_RANDOM_SELECTOR, RANDOM_SELECTOR, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SPRING_FEATURE, TREE, TWISTING_VINES, VINES, VOID_START_PLATFORM, WEEPING_VINES| Constructor and Description |
|---|
TreeFeature(com.mojang.serialization.Codec<TreeFeatureConfig> configCodec) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canReplace(TestableWorld testableWorld,
BlockPos pos) |
static boolean |
canTreeReplace(TestableWorld world,
BlockPos pos) |
private boolean |
generate(ModifiableTestableWorld world,
Random random,
BlockPos pos,
Set<BlockPos> logPositions,
Set<BlockPos> leavesPositions,
BlockBox box,
TreeFeatureConfig config) |
boolean |
generate(ServerWorldAccess serverWorldAccess,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
Random random,
BlockPos blockPos,
TreeFeatureConfig treeFeatureConfig) |
static boolean |
isAirOrLeaves(TestableWorld world,
BlockPos pos) |
private static boolean |
isDirtOrGrass(TestableWorld world,
BlockPos pos) |
private static boolean |
isReplaceablePlant(TestableWorld world,
BlockPos pos) |
private static boolean |
isVine(TestableWorld world,
BlockPos pos) |
private static boolean |
isWater(TestableWorld world,
BlockPos pos) |
private int |
method_29963(TestableWorld testableWorld,
int int2,
BlockPos blockPos,
TreeFeatureConfig treeFeatureConfig) |
private VoxelSet |
placeLogsAndLeaves(WorldAccess world,
BlockBox box,
Set<BlockPos> logs,
Set<BlockPos> leaves) |
protected void |
setBlockState(ModifiableWorld world,
BlockPos pos,
BlockState state) |
static void |
setBlockStateWithoutUpdatingNeighbors(ModifiableWorld world,
BlockPos pos,
BlockState state) |
public TreeFeature(com.mojang.serialization.Codec<TreeFeatureConfig> configCodec)
public static boolean canTreeReplace(TestableWorld world, BlockPos pos)
private static boolean isVine(TestableWorld world, BlockPos pos)
private static boolean isWater(TestableWorld world, BlockPos pos)
public static boolean isAirOrLeaves(TestableWorld world, BlockPos pos)
private static boolean isDirtOrGrass(TestableWorld world, BlockPos pos)
private static boolean isReplaceablePlant(TestableWorld world, BlockPos pos)
public static void setBlockStateWithoutUpdatingNeighbors(ModifiableWorld world, BlockPos pos, BlockState state)
public static boolean canReplace(TestableWorld testableWorld, BlockPos pos)
private boolean generate(ModifiableTestableWorld world, Random random, BlockPos pos, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, BlockBox box, TreeFeatureConfig config)
private int method_29963(TestableWorld testableWorld, int int2, BlockPos blockPos, TreeFeatureConfig treeFeatureConfig)
protected void setBlockState(ModifiableWorld world, BlockPos pos, BlockState state)
setBlockState in class Feature<TreeFeatureConfig>public final boolean generate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, TreeFeatureConfig treeFeatureConfig)
generate in class Feature<TreeFeatureConfig>