API Reference
On this page
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 |
| MCAPI AmbientSoundController::AmbientSoundController | ( | ::WeakEntityRef | localUser, |
| ::SoundMapping const & | soundMap ) |
|
virtual |
Reimplemented from PlayerListener.
|
virtual |
Reimplemented from PlayerListener.
|
virtual |
Reimplemented from PlayerListener.
| MCAPI void AmbientSoundController::_addDelayOrTransitioningToNewStage | ( | ) |
| MCAPI void AmbientSoundController::_startLoopSound | ( | ) |
| MCAPI void AmbientSoundController::_stopLoopSound | ( | bool | hard | ) |
| MCAPI void AmbientSoundController::_tryPlayAdditionSounds | ( | ::Vec3 const & | listenerPos, |
| ::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const & | playSoundFunc ) |
| MCAPI void AmbientSoundController::_tryPlayLoopSounds | ( | ::Vec3 const & | listenerPos | ) |
| 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 ) |
| MCAPI void * AmbientSoundController::$ctor | ( | ::WeakEntityRef | localUser, |
| ::SoundMapping const & | soundMap ) |
| MCAPI void AmbientSoundController::$onWillChangeDimension | ( | ::Player & | player | ) |
| MCAPI void AmbientSoundController::$onDimensionChanged | ( | ::Player & | player | ) |
| MCAPI void AmbientSoundController::$onPlayerDestruction | ( | ::Player & | player | ) |