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

Public Types

enum class  StatsType : uint {
  Level0 = 0 , Level1 = 1 , Level2 = 2 , Memory = 3 ,
  Default = 0
}

Public Member Functions

virtual void forEachKeyWithPrefix (::std::string_view, ::DBHelpers::Category, ::std::function< void(::std::string_view, ::std::string_view)> const &) const
virtual void addStorageObserver (::std::unique_ptr<::LevelStorageObserver >)
virtual ::std::unique_ptr<::CompoundTaggetCompoundTag (::std::string const &, ::DBHelpers::Category)
virtual bool hasKey (::std::string_view, ::DBHelpers::Category) const
virtual bool loadLevelData (::LevelData &)
virtual ::std::unique_ptr<::ChunkSourcecreateChunkStorage (::std::unique_ptr<::ChunkSource >, ::StorageVersion)
virtual void saveLevelData (::LevelData const &)
virtual ::Core::PathBuffer<::std::string > const & getFullPath () const
virtual ::Bedrock::Threading::Async< void > saveData (::std::string const &, ::std::string &&, ::DBHelpers::Category)
virtual ::Bedrock::Threading::Async< void > saveData (::LevelStorageWriteBatch const &)
MCAPI ::Bedrock::Threading::Async< void > saveData (::std::string const &key, ::CompoundTag const &tag, ::DBHelpers::Category category)
virtual ::Bedrock::Threading::Async< void > deleteData (::std::string const &, ::DBHelpers::Category)
virtual void getStatistics (::std::string &, ::LevelStorage::StatsType) const
virtual::Core::LevelStorageResult getLevelStorageState () const
virtual::ContentIdentity const * getContentIdentity () const
virtual void startShutdown ()
virtual bool isShuttingDown () const
virtual bool checkShutdownDone ()
virtual::Core::LevelStorageResult getState () const
virtual ::std::vector<::SnapshotFilenameAndLengthcreateSnapshot (::std::string const &, bool)
virtual void releaseSnapshot ()
virtual ::Bedrock::Threading::Async< void > compactStorage ()
virtual void syncAndSuspendStorage ()
virtual void resumeStorage ()
virtual void setFlushAllowed (bool)
virtual void flushToPermanentStorage ()
virtual void setCompactionCallback (::std::function< void(::CompactionStatus)>)
virtual void setCriticalSyncSaveCallback (::std::function< void()>)
virtual bool loadedSuccessfully () const
virtual bool clonePlayerData (::std::string_view fromKey, ::std::string_view toKey)
virtual bool loadData (::std::string_view key, ::std::string &buffer, ::DBHelpers::Category category) const
virtual void freeCaches ()
virtual void corruptLevel ()
MCAPI_C ::std::unique_ptr<::LevelStorageWriteBatchcreateWriteBatch ()
MCAPI::std::string getServerId (::Player const &client, bool isXboxLive)
MCAPI ::std::vector<::std::string > loadAllPlayerIDs (bool includeLocalPlayer) const
MCAPI ::std::unique_ptr<::CompoundTagloadServerPlayerData (::Player const &client, bool isXboxLive)
MCAPI void save (::Player &player)
MCAPI void $dtor ()
MCFOLD bool $loadedSuccessfully () const
MCAPI bool $clonePlayerData (::std::string_view fromKey, ::std::string_view toKey)
MCFOLD bool $loadData (::std::string_view key, ::std::string &buffer, ::DBHelpers::Category category) const
MCFOLD void $freeCaches ()
MCFOLD void $corruptLevel ()

Static Public Member Functions

static MCAPI ::std::string const & LEGACY_CONSOLE_PLAYER_PREFIX ()
static MCAPI ::std::string const & LOCAL_PLAYER_TAG ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 32, ::std::string const > mStructureSaveId
::ll::TypedStorage< 8, 104, ::StructureSettings const > mStructureSettings
::ll::TypedStorage< 8, 32, ::std::string const > mStructureName
::ll::TypedStorage< 4, 12, ::BlockPos const > mPosition

Member Function Documentation

◆ forEachKeyWithPrefix()

virtual void TestStructureMockLevelStorage::forEachKeyWithPrefix ( ::std::string_view ,
::DBHelpers::Category ,
::std::function< void(::std::string_view, ::std::string_view)> const &  ) const
virtual

Reimplemented from MockLevelStorage.

◆ addStorageObserver()

virtual void MockLevelStorage::addStorageObserver ( ::std::unique_ptr<::LevelStorageObserver > )
virtualinherited

Implements LevelStorage.

◆ getCompoundTag()

virtual ::std::unique_ptr<::CompoundTag > MockLevelStorage::getCompoundTag ( ::std::string const & ,
::DBHelpers::Category  )
virtualinherited

Implements LevelStorage.

◆ hasKey()

virtual bool MockLevelStorage::hasKey ( ::std::string_view ,
::DBHelpers::Category  ) const
virtualinherited

Implements LevelStorage.

◆ loadLevelData()

virtual bool MockLevelStorage::loadLevelData ( ::LevelData & )
virtualinherited

Implements LevelStorage.

◆ createChunkStorage()

virtual ::std::unique_ptr<::ChunkSource > MockLevelStorage::createChunkStorage ( ::std::unique_ptr<::ChunkSource > ,
::StorageVersion  )
virtualinherited

Implements LevelStorage.

◆ saveLevelData()

virtual void MockLevelStorage::saveLevelData ( ::LevelData const & )
virtualinherited

Implements LevelStorage.

◆ getFullPath()

virtual ::Core::PathBuffer<::std::string > const & MockLevelStorage::getFullPath ( ) const
virtualinherited

Implements LevelStorage.

◆ saveData() [1/2]

virtual ::Bedrock::Threading::Async< void > MockLevelStorage::saveData ( ::std::string const & ,
::std::string && ,
::DBHelpers::Category  )
virtualinherited

Implements LevelStorage.

◆ saveData() [2/2]

virtual ::Bedrock::Threading::Async< void > MockLevelStorage::saveData ( ::LevelStorageWriteBatch const & )
virtualinherited

Implements LevelStorage.

◆ deleteData()

virtual ::Bedrock::Threading::Async< void > MockLevelStorage::deleteData ( ::std::string const & ,
::DBHelpers::Category  )
virtualinherited

Implements LevelStorage.

◆ getStatistics()

virtual void MockLevelStorage::getStatistics ( ::std::string & ,
::LevelStorage::StatsType  ) const
virtualinherited

Implements LevelStorage.

◆ getLevelStorageState()

virtual::Core::LevelStorageResult MockLevelStorage::getLevelStorageState ( ) const
virtualinherited

Implements LevelStorage.

◆ getContentIdentity()

virtual::ContentIdentity const * MockLevelStorage::getContentIdentity ( ) const
virtualinherited

Implements LevelStorage.

◆ startShutdown()

virtual void MockLevelStorage::startShutdown ( )
virtualinherited

Implements LevelStorage.

◆ isShuttingDown()

virtual bool MockLevelStorage::isShuttingDown ( ) const
virtualinherited

Implements LevelStorage.

◆ checkShutdownDone()

virtual bool MockLevelStorage::checkShutdownDone ( )
virtualinherited

Implements LevelStorage.

◆ getState()

virtual::Core::LevelStorageResult MockLevelStorage::getState ( ) const
virtualinherited

Implements LevelStorage.

◆ createSnapshot()

virtual ::std::vector<::SnapshotFilenameAndLength > MockLevelStorage::createSnapshot ( ::std::string const & ,
bool  )
virtualinherited

Implements LevelStorage.

◆ releaseSnapshot()

virtual void MockLevelStorage::releaseSnapshot ( )
virtualinherited

Implements LevelStorage.

◆ compactStorage()

virtual ::Bedrock::Threading::Async< void > MockLevelStorage::compactStorage ( )
virtualinherited

Implements LevelStorage.

◆ syncAndSuspendStorage()

virtual void MockLevelStorage::syncAndSuspendStorage ( )
virtualinherited

Implements LevelStorage.

◆ resumeStorage()

virtual void MockLevelStorage::resumeStorage ( )
virtualinherited

Implements LevelStorage.

◆ setFlushAllowed()

virtual void MockLevelStorage::setFlushAllowed ( bool )
virtualinherited

Implements LevelStorage.

◆ flushToPermanentStorage()

virtual void MockLevelStorage::flushToPermanentStorage ( )
virtualinherited

Implements LevelStorage.

◆ setCompactionCallback()

virtual void MockLevelStorage::setCompactionCallback ( ::std::function< void(::CompactionStatus)> )
virtualinherited

Implements LevelStorage.

◆ setCriticalSyncSaveCallback()

virtual void MockLevelStorage::setCriticalSyncSaveCallback ( ::std::function< void()> )
virtualinherited

Implements LevelStorage.

◆ $vftable()

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