Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
AmbientSoundController Class Reference
Inheritance diagram for AmbientSoundController:

Public Types

using PlaySoundFunc = ::brstd::function_ref<void(::HashedString const&, ::Vec3 const&)>
using LightThresholdFunc = ::brstd::function_ref<bool(::BrightnessPair, ::BlockPos const&, ::BrightnessPair)>

Public Member Functions

AmbientSoundController & operator= (AmbientSoundController const &)
 AmbientSoundController (AmbientSoundController const &)
virtual void onWillChangeDimension (::Player &player)
virtual void onDimensionChanged (::Player &player)
virtual void onPlayerDestruction (::Player &player)
MCAPI AmbientSoundController (::WeakEntityRef localUser, ::SoundMapping const &soundMap)
MCAPI void _addDelayOrTransitioningToNewStage ()
MCAPI void _startLoopSound ()
MCAPI void _stopLoopSound (bool hard)
MCAPI void _tryPlayAdditionSounds (::Vec3 const &listenerPos, ::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const &playSoundFunc)
MCAPI void _tryPlayLoopSounds (::Vec3 const &listenerPos)
MCAPI void _tryPlayMoodSound (::Vec3 const &listenerPos, ::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const &playSoundFunc, ::brstd::function_ref< bool(::BrightnessPair, ::BlockPos const &, ::BrightnessPair)> lightThresholdFunc)
MCAPI void * $ctor (::WeakEntityRef localUser, ::SoundMapping const &soundMap)
MCAPI void $onWillChangeDimension (::Player &player)
MCAPI void $onDimensionChanged (::Player &player)
MCAPI void $onPlayerDestruction (::Player &player)

Public Attributes

::ll::TypedStorage< 4, 4, ::LoopSoundStage > mLoopSoundStage
::ll::TypedStorage< 8, 24, ::WeakEntityRef > mLocalUser
::ll::TypedStorage< 8, 8, ::SoundMapping const & > mSoundMap
::ll::TypedStorage< 8, 8, ::std::chrono::steady_clock::time_point > mNextSoundChangeTime
::ll::TypedStorage< 4, 4, int > mDelayUntilNextMoodSound
::ll::TypedStorage< 2, 2, ::BiomeIdType > mTargetLoopBiomeId
::ll::TypedStorage< 8, 48, ::HashedString > mTargetAmbientLoopSound
::ll::TypedStorage< 2, 2, ::BiomeIdType > mCurrentLoopBiomeId
::ll::TypedStorage< 8, 48, ::HashedString > mCurrentAmbientLoopSound
::ll::TypedStorage< 8, 8, uint64 > mCurrentLoop
::ll::TypedStorage< 8, 8, uint64 > mPreviousLoop
::ll::TypedStorage< 4, 4, float > mCurrentVolume
::ll::TypedStorage< 4, 4, float > mCurrentPitch

Constructor & Destructor Documentation

◆ AmbientSoundController()

MCAPI AmbientSoundController::AmbientSoundController ( ::WeakEntityRef localUser,
::SoundMapping const & soundMap )
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

◆ onWillChangeDimension()

virtual void AmbientSoundController::onWillChangeDimension ( ::Player & player)
virtual

Reimplemented from PlayerListener.

◆ onDimensionChanged()

virtual void AmbientSoundController::onDimensionChanged ( ::Player & player)
virtual

Reimplemented from PlayerListener.

◆ onPlayerDestruction()

virtual void AmbientSoundController::onPlayerDestruction ( ::Player & player)
virtual

Reimplemented from PlayerListener.

◆ _addDelayOrTransitioningToNewStage()

MCAPI void AmbientSoundController::_addDelayOrTransitioningToNewStage ( )
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.

◆ _startLoopSound()

MCAPI void AmbientSoundController::_startLoopSound ( )
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.

◆ _stopLoopSound()

MCAPI void AmbientSoundController::_stopLoopSound ( bool hard)
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.

◆ _tryPlayAdditionSounds()

MCAPI void AmbientSoundController::_tryPlayAdditionSounds ( ::Vec3 const & listenerPos,
::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const & playSoundFunc )
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.

◆ _tryPlayLoopSounds()

MCAPI void AmbientSoundController::_tryPlayLoopSounds ( ::Vec3 const & listenerPos)
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.

◆ _tryPlayMoodSound()

MCAPI void AmbientSoundController::_tryPlayMoodSound ( ::Vec3 const & listenerPos,
::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const & playSoundFunc,
::brstd::function_ref< bool(::BrightnessPair, ::BlockPos const &, ::BrightnessPair)> lightThresholdFunc )
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 * AmbientSoundController::$ctor ( ::WeakEntityRef localUser,
::SoundMapping const & soundMap )
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.

◆ $onWillChangeDimension()

MCAPI void AmbientSoundController::$onWillChangeDimension ( ::Player & player)
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.

◆ $onDimensionChanged()

MCAPI void AmbientSoundController::$onDimensionChanged ( ::Player & player)
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.

◆ $onPlayerDestruction()

MCAPI void AmbientSoundController::$onPlayerDestruction ( ::Player & player)
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: