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

Classes

struct  ComponentInstance
struct  ComponentBase

Public Member Functions

MCAPI::BlockComponentStorage::ComponentBase * _findComponentBase (::Bedrock::typeid_t< void > componentIdToFind) const
MCAPI ~BlockComponentStorage ()
template<class T>
bool hasComponent () const
template<class T>
T * _findComponentTyped () const
 The payload sits immediately after ComponentBase's vtable pointer.
template<class TComponent, class... Args>
TComponent * _addStatefulComponent (::Bedrock::typeid_t< void > typeId, Args &&... args)
 Constructs a component of type TComponent in place and inserts it, or overwrites the existing one when the storage allows replacement.
void allowComponentReplacement ()
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 48, ::brstd::flat_map< ::Bedrock::typeid_t< void >, ::std::unique_ptr<::BlockComponentStorage::ComponentBase >, ::std::less<::Bedrock::typeid_t< void > >, ::std::vector<::Bedrock::typeid_t< void > >, ::std::vector<::std::unique_ptr<::BlockComponentStorage::ComponentBase > > > > mComponents
::ll::TypedStorage< 8, 24, ::brstd::flat_set< ::Bedrock::typeid_t< void >, ::std::less<::Bedrock::typeid_t< void > >, ::std::vector<::Bedrock::typeid_t< void > > > > mStatelessComponents
::ll::TypedStorage< 1, 1, bool > mAllowModifyingComponents
::ll::TypedStorage< 1, 1, bool > mAllowComponentReplacement
::ll::TypedStorage< 1, 1, bool > mAllowTryGetComponentBeforeFinalization
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::BlockComponentEventSubscriber > > mBlockComponentEventSubscriber

Constructor & Destructor Documentation

◆ ~BlockComponentStorage()

MCAPI BlockComponentStorage::~BlockComponentStorage ( )
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

◆ $dtor()

MCAPI void BlockComponentStorage::$dtor ( )
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: