Skip to content
LeviLamina

API Reference

On this page

Loading...
Searching...
No Matches
EntityStorageBlockActorComponent Class Reference
Inheritance diagram for EntityStorageBlockActorComponent:

Classes

struct  Context
struct  EntityStorageInfo

Public Types

enum class  EntityStorageResult : uchar {
  Success = 0 , ClientSide = 1 , StorageFull = 2 , InvalidEntityId = 3 ,
  EntityAlreadyStored = 4 , ActorSaveFailed = 5 , EntityNotFound = 6 , ActorLoadFailed = 7 ,
  ActorSpawnFailed = 8 , SameBucket = 9 , NoStorageFound = 10 , EntityNotAllowed = 11 ,
  EntityMounted = 12
}
using EntityBucket = ::std::vector<::CompoundTag>
using EntityBuckets = ::std::unordered_map<::std::string, ::std::vector<::CompoundTag>>

Public Member Functions

virtual void save (::CompoundTag &parentTag, ::SaveContext const &) const
virtual void load (::CompoundTag const &parentTag, ::ILevel &level, ::BlockActorVersion version)
MCAPI ::std::vector<::EntityStorageBlockActorComponent::EntityStorageInfo > getEntities (::std::string const &bucket) const
MCAPI::EntityStorageBlockActorComponent::EntityStorageResult release (::std::string const &bucket, ::ActorUniqueID entityId, ::Actor *&outActor, ::EntityStorageBlockActorComponent::Context const &context)
MCAPI int size (::std::string const &bucket) const
MCAPI::EntityStorageBlockActorComponent::EntityStorageResult store (::std::string const &bucket, ::Actor &actor, ::ActorUniqueID &outEntityId, ::EntityStorageBlockActorComponent::Context const &context)
MCAPI::EntityStorageBlockActorComponent::EntityStorageResult transfer (::std::string const &bucket, ::ActorUniqueID entityId, ::BlockActor &targetBlockActor, ::EntityStorageBlockActorComponent::Context const &context)
MCAPI void $save (::CompoundTag &parentTag, ::SaveContext const &) const
MCAPI void $load (::CompoundTag const &parentTag, ::ILevel &level, ::BlockActorVersion version)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::vector<::CompoundTag > > > mEntities

Member Function Documentation

◆ save()

virtual void EntityStorageBlockActorComponent::save ( ::CompoundTag & parentTag,
::SaveContext const &  ) const
virtual

Implements IBlockActorComponent.

◆ load()

virtual void EntityStorageBlockActorComponent::load ( ::CompoundTag const & parentTag,
::ILevel & level,
::BlockActorVersion version )
virtual

Implements IBlockActorComponent.

◆ getEntities()

MCAPI ::std::vector<::EntityStorageBlockActorComponent::EntityStorageInfo > EntityStorageBlockActorComponent::getEntities ( ::std::string const & bucket) const
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.

◆ release()

MCAPI::EntityStorageBlockActorComponent::EntityStorageResult EntityStorageBlockActorComponent::release ( ::std::string const & bucket,
::ActorUniqueID entityId,
::Actor *& outActor,
::EntityStorageBlockActorComponent::Context const & context )
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.

◆ size()

MCAPI int EntityStorageBlockActorComponent::size ( ::std::string const & bucket) const
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.

◆ store()

MCAPI::EntityStorageBlockActorComponent::EntityStorageResult EntityStorageBlockActorComponent::store ( ::std::string const & bucket,
::Actor & actor,
::ActorUniqueID & outEntityId,
::EntityStorageBlockActorComponent::Context const & context )
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.

◆ transfer()

MCAPI::EntityStorageBlockActorComponent::EntityStorageResult EntityStorageBlockActorComponent::transfer ( ::std::string const & bucket,
::ActorUniqueID entityId,
::BlockActor & targetBlockActor,
::EntityStorageBlockActorComponent::Context const & context )
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.

◆ $save()

MCAPI void EntityStorageBlockActorComponent::$save ( ::CompoundTag & parentTag,
::SaveContext const &  ) const
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.

◆ $load()

MCAPI void EntityStorageBlockActorComponent::$load ( ::CompoundTag const & parentTag,
::ILevel & level,
::BlockActorVersion version )
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.

◆ $vftable()

MCAPI void ** EntityStorageBlockActorComponent::$vftable ( )
static
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: