LeviLamina
Loading...
Searching...
No Matches
CherryTreeTrunk Class Reference
Inheritance diagram for CherryTreeTrunk:

Public Member Functions

virtual int getTreeHeight (::Random &random) const
virtual ::std::optional<::BlockPosplaceTrunk (::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::Random &random, int treeHeight, ::RenderParams &renderParams, ::TreeHelper::TreeParams const &treeParams, ::ITreeCanopy const *canopy) const
MCAPI::BlockPos _generateBranch (::IBlockWorldGenAPI &target, ::Block const &trunkBlock, ::Block const &sidewaysTrunkBlock, ::Random &random, int treeHeight, ::BlockPos origin, ::TreeHelper::TreeParams const &treeParams, ::BlockPos branchDirection, int offsetFromOrigin, bool middleContinuesUpwards) const
MCAPI int $getTreeHeight (::Random &random) const
MCAPI ::std::optional<::BlockPos$placeTrunk (::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::Random &random, int treeHeight, ::RenderParams &renderParams, ::TreeHelper::TreeParams const &treeParams, ::ITreeCanopy const *canopy) const

Public Attributes

::ll::TypedStorage< 8, 176, ::BlockDescriptormTrunkBlockDescriptor
::ll::TypedStorage< 4, 4, int > mBaseHeight
::ll::TypedStorage< 8, 24, ::std::vector< int > > mHeightIntervals
::ll::TypedStorage< 8, 24, ::std::vector<::WeightedRandom::WeighedRandomItem > > mTreeTypeWeights
::ll::TypedStorage< 4, 8, ::IntRangemBranchHorizontalLength
::ll::TypedStorage< 4, 8, ::IntRangemBranchStartOffsetFromTop
::ll::TypedStorage< 4, 8, ::IntRangemBranchEndOffsetFromTop
::ll::TypedStorage< 8, 8, ::ITreeCanopyWrappermBranchCanopy

Member Function Documentation

◆ getTreeHeight()

virtual int CherryTreeTrunk::getTreeHeight ( ::Random & random) const
virtual

Implements ITreeTrunk.

◆ placeTrunk()

virtual ::std::optional<::BlockPos > CherryTreeTrunk::placeTrunk ( ::IBlockWorldGenAPI & target,
::BlockPos const & pos,
::Random & random,
int treeHeight,
::RenderParams & renderParams,
::TreeHelper::TreeParams const & treeParams,
::ITreeCanopy const * canopy ) const
virtual

Implements ITreeTrunk.


The documentation for this class was generated from the following file: