Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
JigsawPlacement Class Reference

Public Types

using PieceFactory

Public Member Functions

JigsawPlacement & operator= (JigsawPlacement const &)
 JigsawPlacement (JigsawPlacement const &)
MCAPI JigsawPlacement (uint64 maxDepth, uint64 globalContextSize, ::std::vector<::std::unique_ptr<::StructurePiece > > &pieceList, ::std::function<::std::unique_ptr<::PoolElementStructurePiece >(::StructurePoolElement const &, ::BlockPos const &, ::Rotation const &, int, ::JigsawJunction &, ::BoundingBox const &, ::BlockPos const &)> factory, ::Random &random, ::JigsawStructureRegistry const &pools, ::Dimension &dimension)
MCAPI void _addPiece (::PoolElementStructurePiece const &sourcePiece, ::BlockPos const &position, ::Rotation const &rotation, ::BlockPos const &refPos, uint64 contextDepth, ::PoolAliasBinding::PoolAliasLookup const &poolAliasLookup)
MCAPI bool _tryPlacingPiece (::PoolElementStructurePiece const &sourcePiece, ::BoundingBox const &sourceBB, ::JigsawBlockInfo const &sourceJigsaw, ::BlockPos const &attachPos, ::StructureTemplatePool const *targetPool, ::BlockPos const &refPos, uint64 contextDepth, ::PoolAliasBinding::PoolAliasLookup const &poolAliasLookup)
MCAPI void addPieces (::StructurePoolElement const &initialElement, ::BlockPos const &startPosition, ::Rotation const &rotation, ::std::string_view startAnchorName, ::PoolAliasBinding::PoolAliasLookup const &poolAliasLookup)
MCAPI void * $ctor (uint64 maxDepth, uint64 globalContextSize, ::std::vector<::std::unique_ptr<::StructurePiece > > &pieceList, ::std::function<::std::unique_ptr<::PoolElementStructurePiece >(::StructurePoolElement const &, ::BlockPos const &, ::Rotation const &, int, ::JigsawJunction &, ::BoundingBox const &, ::BlockPos const &)> factory, ::Random &random, ::JigsawStructureRegistry const &pools, ::Dimension &dimension)

Public Attributes

::ll::TypedStorage< 4, 4, int const > mMaxDepth
::ll::TypedStorage< 4, 4, int const > mGlobalContextSize
::ll::TypedStorage< 8, 64, ::std::function<::std::unique_ptr<::PoolElementStructurePiece >(::StructurePoolElement const &, ::BlockPos const &, ::Rotation const &, int, ::JigsawJunction &, ::BoundingBox const &, ::BlockPos const &)> const > mFactory
::ll::TypedStorage< 8, 8, ::std::vector<::std::unique_ptr<::StructurePiece > > & > mPieceList
::ll::TypedStorage< 8, 8, ::Random & > mRandom
::ll::TypedStorage< 8, 8, ::JigsawStructureRegistry const & > mPools
::ll::TypedStorage< 8, 8, ::Dimension & > mDimension
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::std::vector< short > > > > mChunkHeightCache
::ll::TypedStorage< 8, 40, ::StablePriorityQueue<::std::function< void()>, ::std::less > > mPlacingQueue
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::std::vector<::BoundingBox >, ::std::vector<::BoundingBox > > > > mContextStack
::ll::TypedStorage< 8, 24, ::std::vector<::Block const * > > mBlockBuffer
::ll::TypedStorage< 8, 40, ::BlockVolume > mBlockBufferBox

Member Typedef Documentation

◆ PieceFactory

using JigsawPlacement::PieceFactory
Initial value:
::std::function<::std::unique_ptr<::PoolElementStructurePiece>(
::BlockPos const&,
::Rotation const&,
int,
::BoundingBox const&,
::BlockPos const&
)>
Definition BlockPos.h:14
Definition BoundingBox.h:13
Definition StructurePoolElement.h:39
Definition JigsawJunction.h:9

Constructor & Destructor Documentation

◆ JigsawPlacement()

MCAPI JigsawPlacement::JigsawPlacement ( uint64 maxDepth,
uint64 globalContextSize,
::std::vector<::std::unique_ptr<::StructurePiece > > & pieceList,
::std::function<::std::unique_ptr<::PoolElementStructurePiece >(::StructurePoolElement const &, ::BlockPos const &, ::Rotation const &, int, ::JigsawJunction &, ::BoundingBox const &, ::BlockPos const &)> factory,
::Random & random,
::JigsawStructureRegistry const & pools,
::Dimension & dimension )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _addPiece()

MCAPI void JigsawPlacement::_addPiece ( ::PoolElementStructurePiece const & sourcePiece,
::BlockPos const & position,
::Rotation const & rotation,
::BlockPos const & refPos,
uint64 contextDepth,
::PoolAliasBinding::PoolAliasLookup const & poolAliasLookup )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _tryPlacingPiece()

MCAPI bool JigsawPlacement::_tryPlacingPiece ( ::PoolElementStructurePiece const & sourcePiece,
::BoundingBox const & sourceBB,
::JigsawBlockInfo const & sourceJigsaw,
::BlockPos const & attachPos,
::StructureTemplatePool const * targetPool,
::BlockPos const & refPos,
uint64 contextDepth,
::PoolAliasBinding::PoolAliasLookup const & poolAliasLookup )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addPieces()

MCAPI void JigsawPlacement::addPieces ( ::StructurePoolElement const & initialElement,
::BlockPos const & startPosition,
::Rotation const & rotation,
::std::string_view startAnchorName,
::PoolAliasBinding::PoolAliasLookup const & poolAliasLookup )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * JigsawPlacement::$ctor ( uint64 maxDepth,
uint64 globalContextSize,
::std::vector<::std::unique_ptr<::StructurePiece > > & pieceList,
::std::function<::std::unique_ptr<::PoolElementStructurePiece >(::StructurePoolElement const &, ::BlockPos const &, ::Rotation const &, int, ::JigsawJunction &, ::BoundingBox const &, ::BlockPos const &)> factory,
::Random & random,
::JigsawStructureRegistry const & pools,
::Dimension & dimension )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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