Package forestry.api.arboriculture
Interface ITreeGenerator
public interface ITreeGenerator
Implements the tree generation for a tree species.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.feature.Feature<net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration>getTreeFeature(ITreeGenData tree) booleansetLeaves(IGenome genome, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand) booleansetLogBlock(IGenome genome, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing)
-
Method Details
-
getTreeFeature
net.minecraft.world.level.levelgen.feature.Feature<net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration> getTreeFeature(ITreeGenData tree) -
setLogBlock
boolean setLogBlock(IGenome genome, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing) -
setLeaves
boolean setLeaves(IGenome genome, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand)
-