net.minecraft.world.gen.feature

public class FallenTreeFeature

extends Feature<FallenTreeFeatureConfig>

net.minecraft.world.level.levelgen.feature.FallenTreeFeature
net.minecraft.class_10853
net.minecraft.world.gen.feature.FallenTreeFeature

Field summary

Modifier and TypeField
private static final int
STUMP_HEIGHT
field_57808
field_57808
private static final int
STUMP_HEIGHT_PLUS_EMPTY_SPACE
field_57811
field_57811
private static final int
FALLEN_LOG_MAX_FALL_HEIGHT_TO_GROUND
field_57812
field_57812
private static final int
FALLEN_LOG_MAX_GROUND_GAP
field_57813
field_57813
private static final int
FALLEN_LOG_MAX_SPACE_FROM_STUMP
field_57809
field_57809

Constructor summary

ModifierConstructor
public (com.mojang.serialization.Codec<FallenTreeFeatureConfig> codec)

Method summary

Modifier and TypeMethod
public boolean
place(FeaturePlaceContext<FallenTreeConfiguration> context)
method_13151(class_5821<class_10854> arg0)
generate(FeatureContext<FallenTreeFeatureConfig> arg0)
private void
placeFallenTree(FallenTreeConfiguration config, BlockPos origin, WorldGenLevel level, RandomSource random)
method_68309(class_10854 arg0, class_2338 arg1, class_5281 arg2, class_5819 arg3)
generate(FallenTreeFeatureConfig config, BlockPos pos, StructureWorldAccess world, Random random)
private void
setGroundHeightForFallenLogStartPos(WorldGenLevel level, BlockPos$MutableBlockPos logStartPos)
method_68304(class_5281 arg0, class_2338$class_2339 arg1)
moveToGroundPos(StructureWorldAccess world, BlockPos$Mutable pos)
private void
placeStump(FallenTreeConfiguration config, WorldGenLevel level, RandomSource random, BlockPos$MutableBlockPos stumpPos)
method_68307(class_10854 arg0, class_5281 arg1, class_5819 arg2, class_2338$class_2339 arg3)
generateStump(FallenTreeFeatureConfig config, StructureWorldAccess world, Random random, BlockPos$Mutable pos)
private boolean
canPlaceEntireFallenLog(WorldGenLevel level, int logLength, BlockPos$MutableBlockPos logStartPos, Direction direction)
method_68302(class_5281 arg0, int arg1, class_2338$class_2339 arg2, class_2350 arg3)
canPlaceLog(StructureWorldAccess world, int length, BlockPos$Mutable pos, Direction direction)
private void
placeFallenLog(FallenTreeConfiguration config, WorldGenLevel level, RandomSource random, int logLength, BlockPos$MutableBlockPos logStartPos, Direction direction)
method_68306(class_10854 arg0, class_5281 arg1, class_5819 arg2, int arg3, class_2338$class_2339 arg4, class_2350 arg5)
generateLog(FallenTreeFeatureConfig config, StructureWorldAccess world, Random random, int length, BlockPos$Mutable pos, Direction direction)
private boolean
mayPlaceOn(LevelAccessor level, BlockPos blockPos)
method_68300(class_1936 arg0, class_2338 arg1)
canReplaceAndHasSolidBelow(WorldAccess world, BlockPos pos)
private boolean
isOverSolidGround(LevelAccessor level, BlockPos blockPos)
method_68313(class_1936 arg0, class_2338 arg1)
isSolidBelow(WorldAccess world, BlockPos pos)
private BlockPos
placeLogBlock(FallenTreeConfiguration config, WorldGenLevel level, RandomSource random, BlockPos$MutableBlockPos blockPos, Function<BlockState, BlockState> sidewaysStateModifier)
method_68308(class_10854 arg0, class_5281 arg1, class_5819 arg2, class_2338$class_2339 arg3, Function<class_2680, class_2680> arg4)
setBlockStateAndGetPos(FallenTreeFeatureConfig config, StructureWorldAccess world, Random random, BlockPos$Mutable pos, Function<BlockState, BlockState> stateFunction)
private void
decorateLogs(WorldGenLevel level, RandomSource random, Set<BlockPos> logs, List<TreeDecorator> decorators)
method_68303(class_5281 arg0, class_5819 arg1, Set<class_2338> arg2, List<class_4662> arg3)
applyDecorators(StructureWorldAccess world, Random random, Set<BlockPos> positions, List<TreeDecorator> decorators)
private BiConsumer<BlockPos, BlockState>
getDecorationSetter(WorldGenLevel level)
method_68301(class_5281 arg0)
createStatePlacer(StructureWorldAccess world)
private static Function<BlockState, BlockState>
getSidewaysStateModifier(Direction direction)
method_68311(class_2350 arg0)
createAxisApplier(Direction direction)
private static BlockState
lambda$getSidewaysStateModifier$0(Direction arg0, BlockState arg1)
method_68312(class_2350 arg0, class_2680 arg1)
method_68312(Direction arg0, BlockState state)
private static void
lambda$getDecorationSetter$0(WorldGenLevel arg0, BlockPos arg1, BlockState arg2)
method_68305(class_5281 arg0, class_2338 arg1, class_2680 arg2)
method_68305(StructureWorldAccess arg0, BlockPos pos, BlockState state)
private static void
lambda$decorateLogs$0(TreeDecorator$Context arg0, TreeDecorator arg1)
method_68310(class_4662$class_7402 arg0, class_4662 arg1)
method_68310(TreeDecorator$Generator arg0, TreeDecorator decorator)