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

Classes

struct  SoundVariantCompare
struct  EntitySounds
struct  EntitySoundList
struct  BlockSounds
struct  ActorInteractiveSounds

Public Types

using EventSoundMap = ::std::unordered_map<::SharedTypes::Legacy::LevelSoundEvent, ::Sound>
using NamedSoundMap = ::std::unordered_map<::HashedString, ::Sound>

Public Member Functions

MCAPI::Sound const & _getBlockSound (::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > const &blockSounds, ::SharedTypes::Legacy::LevelSoundEvent eventType, ::std::string const &blockType) const
MCAPI void _loadSounds (::Json::Value const &json, ::Bedrock::NonOwnerPointer<::LinkedAssetValidator > validator)
MCAPI bool canPlayEntitySound (::SharedTypes::Legacy::LevelSoundEvent eventType, ::ActorDefinitionIdentifier const &identifier) const
MCAPI::Sound const & getEntitySound (::SharedTypes::Legacy::LevelSoundEvent eventType, ::ActorSoundIdentifier const &actorSoundIdentifier) const
MCAPI::Sound const & getEventSound (::SharedTypes::Legacy::LevelSoundEvent eventType) const
MCAPI::Sound const & getNamedSound (::HashedString const &name) const
MCAPI::Sound getSound (::SharedTypes::Legacy::LevelSoundEvent eventType, ::ActorSoundIdentifier const &actorSoundIdentifier, ::std::string const &blockType, ::Random &rand) const

Static Public Member Functions

static MCAPI void _loadBlockSounds (::Json::Value const &root, ::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > &blockSoundList)
static MCAPI void _loadEntityInteractiveSounds (::Json::Value const &root, ::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > &blockSounds, ::std::unordered_map<::std::string, ::SoundMapping::EntitySoundList > &entitySoundLists)
static MCAPI void _loadEventSounds (::Json::Value const &root, ::std::unordered_map<::SharedTypes::Legacy::LevelSoundEvent, ::Sound > &eventSoundMap, bool allowEmpty)

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::SharedTypes::Legacy::LevelSoundEvent, ::Sound > > mEventSounds
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::Sound > > mNamedSounds
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::SoundMapping::EntitySounds > > mEntitySounds
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > > mBlockSounds
::ll::TypedStorage< 8, 128, ::SoundMapping::ActorInteractiveSounds > mEntityInteractiveSounds

Member Function Documentation

◆ _getBlockSound()

MCAPI::Sound const & SoundMapping::_getBlockSound ( ::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > const & blockSounds,
::SharedTypes::Legacy::LevelSoundEvent eventType,
::std::string const & blockType ) 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.

◆ _loadSounds()

MCAPI void SoundMapping::_loadSounds ( ::Json::Value const & json,
::Bedrock::NonOwnerPointer<::LinkedAssetValidator > validator )
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.

◆ canPlayEntitySound()

MCAPI bool SoundMapping::canPlayEntitySound ( ::SharedTypes::Legacy::LevelSoundEvent eventType,
::ActorDefinitionIdentifier const & identifier ) 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.

◆ getEntitySound()

MCAPI::Sound const & SoundMapping::getEntitySound ( ::SharedTypes::Legacy::LevelSoundEvent eventType,
::ActorSoundIdentifier const & actorSoundIdentifier ) 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.

◆ getEventSound()

MCAPI::Sound const & SoundMapping::getEventSound ( ::SharedTypes::Legacy::LevelSoundEvent eventType) 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.

◆ getNamedSound()

MCAPI::Sound const & SoundMapping::getNamedSound ( ::HashedString const & name) 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.

◆ getSound()

MCAPI::Sound SoundMapping::getSound ( ::SharedTypes::Legacy::LevelSoundEvent eventType,
::ActorSoundIdentifier const & actorSoundIdentifier,
::std::string const & blockType,
::Random & rand ) 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.

◆ _loadBlockSounds()

MCAPI void SoundMapping::_loadBlockSounds ( ::Json::Value const & root,
::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > & blockSoundList )
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.

◆ _loadEntityInteractiveSounds()

MCAPI void SoundMapping::_loadEntityInteractiveSounds ( ::Json::Value const & root,
::std::unordered_map<::std::string, ::SoundMapping::BlockSounds > & blockSounds,
::std::unordered_map<::std::string, ::SoundMapping::EntitySoundList > & entitySoundLists )
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.

◆ _loadEventSounds()

MCAPI void SoundMapping::_loadEventSounds ( ::Json::Value const & root,
::std::unordered_map<::SharedTypes::Legacy::LevelSoundEvent, ::Sound > & eventSoundMap,
bool allowEmpty )
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 files: