net.minecraft.world.gen.feature

public record RootSystemFeature

implements Feature

net.minecraft.world.level.levelgen.feature.RootSystemFeature
net.minecraft.class_5921
net.minecraft.world.gen.feature.RootSystemFeature

Field summary

Modifier and TypeField
private final RegistryEntry<PlacedFeature>
treeFeature
comp_1_1052
treeFeature
private final int
requiredVerticalSpaceForTree
comp_1_1046
requiredVerticalSpaceForTree
private final int
levelTestDistance
comp_1_1044
levelTestDistance
private final int
maxLevelDeviation
comp_1_1045
maxLevelDeviation
private final int
rootRadius
comp_1_1049
rootRadius
private final RegistryEntryList<Block>
rootReplaceable
comp_1_1050
rootReplaceable
private final BlockStateProvider
rootStateProvider
comp_1_1051
rootStateProvider
private final int
rootPlacementAttempts
comp_1_1048
rootPlacementAttempts
private final int
rootColumnMaxHeight
comp_1_1047
rootColumnMaxHeight
private final int
hangingRootRadius
comp_1_1041
hangingRootRadius
private final int
hangingRootsVerticalSpan
comp_1_1043
hangingRootsVerticalSpan
private final BlockStateProvider
hangingRootStateProvider
comp_1_1042
hangingRootStateProvider
private final int
hangingRootPlacementAttempts
comp_1_1040
hangingRootPlacementAttempts
private final int
allowedVerticalWaterForTree
comp_1_1039
allowedVerticalWaterForTree
private final BlockPredicate
allowedTreePosition
comp_1_1038
allowedTreePosition
public static final com.mojang.serialization.MapCodec<RootSystemFeature>
CODEC
field_1_7797
CODEC

Constructor summary

ModifierConstructor
public (RegistryEntry<PlacedFeature> treeFeature, int requiredVerticalSpaceForTree, int levelTestDistance, int maxLevelDeviation, int rootRadius, RegistryEntryList<Block> rootReplaceable, BlockStateProvider rootStateProvider, int rootPlacementAttempts, int rootColumnMaxHeight, int hangingRootRadius, int hangingRootsVerticalSpan, BlockStateProvider hangingRootStateProvider, int hangingRootPlacementAttempts, int allowedVerticalWaterForTree, BlockPredicate allowedTreePosition)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<RootSystemFeature>
codec()
method_1_6879()
getCodec()
public boolean
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
method_13151(class_5281 arg0, class_2794 arg1, class_5819 arg2, class_2338 arg3)
generate(StructureWorldAccess arg0, ChunkGenerator arg1, Random arg2, BlockPos arg3)
private boolean
spaceForTree(WorldGenLevel level, BlockPos pos)
method_34310(class_5281 arg0, class_2338 arg1)
hasSpaceForTree(StructureWorldAccess world, BlockPos pos)
private static boolean
isAllowedTreeSpace(BlockState state, int blocksAboveOrigin, int allowedVerticalWaterHeight)
method_36419(class_2680 arg0, int arg1, int arg2)
isAirOrWater(BlockState state, int height, int allowedVerticalWaterForTree)
private boolean
placeDirtAndTree(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos$MutableBlockPos workingPos, BlockPos pos)
method_34308(class_5281 arg0, class_2794 arg1, class_5819 arg2, class_2338$class_2339 arg3, class_2338 arg4)
generateTreeAndRoots(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos$Mutable mutablePos, BlockPos pos)
private void
placeDirt(BlockPos origin, int targetHeight, WorldGenLevel level, RandomSource random)
method_39918(class_2338 arg0, int arg1, class_5281 arg2, class_5819 arg3)
generateRootsColumn(BlockPos pos, int maxY, StructureWorldAccess arg2, Random random)
private void
placeRootedDirt(WorldGenLevel level, RandomSource random, int originX, int originZ, BlockPos$MutableBlockPos workingPos)
method_34311(class_5281 arg0, class_5819 arg1, int arg2, int arg3, class_2338$class_2339 arg4)
generateRoots(StructureWorldAccess world, Random random, int x, int z, BlockPos$Mutable mutablePos)
private void
placeRoots(WorldGenLevel level, RandomSource random, BlockPos pos, BlockPos$MutableBlockPos workingPos)
method_34312(class_5281 arg0, class_5819 arg1, class_2338 arg2, class_2338$class_2339 arg3)
generateHangingRoots(StructureWorldAccess world, Random random, BlockPos pos, BlockPos$Mutable mutablePos)
public RegistryEntry<PlacedFeature>
treeFeature()
comp_1_1052()
treeFeature()
public int
requiredVerticalSpaceForTree()
comp_1_1046()
requiredVerticalSpaceForTree()
public int
levelTestDistance()
comp_1_1044()
levelTestDistance()
public int
maxLevelDeviation()
comp_1_1045()
maxLevelDeviation()
public int
rootRadius()
comp_1_1049()
rootRadius()
public RegistryEntryList<Block>
rootReplaceable()
comp_1_1050()
rootReplaceable()
public BlockStateProvider
rootStateProvider()
comp_1_1051()
rootStateProvider()
public int
rootPlacementAttempts()
comp_1_1048()
rootPlacementAttempts()
public int
rootColumnMaxHeight()
comp_1_1047()
rootColumnMaxHeight()
public int
hangingRootRadius()
comp_1_1041()
hangingRootRadius()
public int
hangingRootsVerticalSpan()
comp_1_1043()
hangingRootsVerticalSpan()
public BlockStateProvider
hangingRootStateProvider()
comp_1_1042()
hangingRootStateProvider()
public int
hangingRootPlacementAttempts()
comp_1_1040()
hangingRootPlacementAttempts()
public int
allowedVerticalWaterForTree()
comp_1_1039()
allowedVerticalWaterForTree()
public BlockPredicate
allowedTreePosition()
comp_1_1038()
allowedTreePosition()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_7120(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_7120(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)