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

AmbientSoundControlleroperator= (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)
MCFOLD void $onDimensionChanged (::Player &player)
MCAPI void $onPlayerDestruction (::Player &player)

Public Attributes

::ll::TypedStorage< 4, 4, ::LoopSoundStage > mLoopSoundStage
::ll::TypedStorage< 8, 24, ::WeakEntityRefmLocalUser
::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, ::BiomeIdTypemTargetLoopBiomeId
::ll::TypedStorage< 8, 48, ::HashedStringmTargetAmbientLoopSound
::ll::TypedStorage< 2, 2, ::BiomeIdTypemCurrentLoopBiomeId
::ll::TypedStorage< 8, 48, ::HashedStringmCurrentAmbientLoopSound
::ll::TypedStorage< 8, 8, uint64 > mCurrentLoop
::ll::TypedStorage< 8, 8, uint64 > mPreviousLoop
::ll::TypedStorage< 4, 4, float > mCurrentVolume
::ll::TypedStorage< 4, 4, float > mCurrentPitch

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.


The documentation for this class was generated from the following files: