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

Public Member Functions

MCAPI MusicManager (::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > const &soundPlayer)
MCAPI ::Bedrock::NonOwnerPointer<::Music > _findBiomeSpecificMusic (::Player const &, ::std::string const &biomeName, ::std::optional<::std::string > const &biomeMusicDefinition) const
MCAPI ::Bedrock::NonOwnerPointer<::Music > _getMusic (::std::string const &musicDefinition)
MCAPI void _update (::Bedrock::NotNullNonOwnerPtr<::Music > desiredMusic)
MCAPI ::Bedrock::NonOwnerPointer<::Music > getSituationalMusic (::LocalPlayer const *player, bool isCreditsScreen, bool isLoadingProgressScreen)
MCAPI void load (::ResourcePackManager &resourcePackManager, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::Bedrock::NonOwnerPointer<::LinkedAssetValidator > validator, ::std::shared_ptr<::std::vector<::Bedrock::Resources::PreloadedPathHandle > > preloadHandles)
MCAPI void registerPauseManagerCallback (::Bedrock::PubSub::Connector< void(bool)> &connector)
MCAPI void update (::LocalPlayer const *player, bool isCreditsScreen, bool isLoadingProgressScreen)
MCAPI ~MusicManager ()
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > const &soundPlayer)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI bool shouldPlayCreativeMusic (bool playerIsCreative, ::BiomeIdType const biomeId)

Public Attributes

::ll::TypedStorage< 8, 232, ::CustomMusic > mCustomMusic
::ll::TypedStorage< 1, 1, bool > mPaused
::ll::TypedStorage< 4, 4, int > mNextSongDelay
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::SoundPlayerInterface > > mSoundPlayer
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::Music > > mCurrentMusic
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::Music > > mPausedMusic
::ll::TypedStorage< 4, 4, ::Category > mLastMusicCategory
::ll::TypedStorage< 8, 32, ::std::string > mCurrentMusicName
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::Music > > > mMusicDefinitions
::ll::TypedStorage< 8, 16, ::Bedrock::Threading::CountTracker > mDeferMusicRefCount
::ll::TypedStorage< 8, 16, ::std::shared_ptr< void * > > mInitLoadingDeferment
::ll::TypedStorage< 8, 16, ::std::shared_ptr< void * > > mResumeLoadingDeferment
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnPauseStateChangeSubscription
::ll::TypedStorage< 1, 1, bool > mIsMusicReady

Constructor & Destructor Documentation

◆ MusicManager()

MCAPI MusicManager::MusicManager ( ::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > const & soundPlayer)
explicit
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.

◆ ~MusicManager()

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

◆ _findBiomeSpecificMusic()

MCAPI ::Bedrock::NonOwnerPointer<::Music > MusicManager::_findBiomeSpecificMusic ( ::Player const & ,
::std::string const & biomeName,
::std::optional<::std::string > const & biomeMusicDefinition ) 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.

◆ _getMusic()

MCAPI ::Bedrock::NonOwnerPointer<::Music > MusicManager::_getMusic ( ::std::string const & musicDefinition)
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.

◆ _update()

MCAPI void MusicManager::_update ( ::Bedrock::NotNullNonOwnerPtr<::Music > desiredMusic)
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.

◆ getSituationalMusic()

MCAPI ::Bedrock::NonOwnerPointer<::Music > MusicManager::getSituationalMusic ( ::LocalPlayer const * player,
bool isCreditsScreen,
bool isLoadingProgressScreen )
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 MusicManager::load ( ::ResourcePackManager & resourcePackManager,
::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager,
::Bedrock::NonOwnerPointer<::LinkedAssetValidator > validator,
::std::shared_ptr<::std::vector<::Bedrock::Resources::PreloadedPathHandle > > preloadHandles )
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.

◆ registerPauseManagerCallback()

MCAPI void MusicManager::registerPauseManagerCallback ( ::Bedrock::PubSub::Connector< void(bool)> & connector)
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.

◆ update()

MCAPI void MusicManager::update ( ::LocalPlayer const * player,
bool isCreditsScreen,
bool isLoadingProgressScreen )
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.

◆ shouldPlayCreativeMusic()

MCAPI bool MusicManager::shouldPlayCreativeMusic ( bool playerIsCreative,
::BiomeIdType const biomeId )
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.

◆ $ctor()

MCAPI void * MusicManager::$ctor ( ::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > const & soundPlayer)
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.

◆ $dtor()

MCAPI void MusicManager::$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 files: