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

Public Types

enum class  OwnerType : int { SculkSensor = 0 , SculkShrieker = 1 , Warden = 2 , Allay = 3 }
enum class  DeliveryMode : int { Unspecified = 0 , ByDistance = 1 }

Public Member Functions

virtual void handleGameEvent (::GameEvent const &gameEvent, ::GameEventContext const &gameEventContext, ::BlockSource &region)
virtual uint getRange () const
virtual::GameEvents::PositionSource const & getPositionSource () const
MCAPI bool _areAdjacentChunksTicking (::BlockSource &region) const
MCAPI void _requestVibrationParticle (::BlockSource &region, ::BlockPos const &originPos, float timeToLive)
MCAPI bool _tryAdvanceInFlightVibration (::BlockSource &region)
MCAPI void load (::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void save (::CompoundTag &tag) const
MCAPI void tick (::BlockSource &region)
MCAPI void $handleGameEvent (::GameEvent const &gameEvent, ::GameEventContext const &gameEventContext, ::BlockSource &region)
MCAPI uint $getRange () const
MCAPI::GameEvents::PositionSource const & $getPositionSource () const
virtual::IGameEventListener::DeliveryMode getDeliveryMode () const
MCAPI::IGameEventListener::DeliveryMode $getDeliveryMode () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 72, ::VibrationSelector > mVibrationSelector
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::VibrationListenerConfig > > mConfig
::ll::TypedStorage< 8, 24, ::GameEvents::PositionSource > mPositionSource
::ll::TypedStorage< 4, 4, ::VibrationListener::OwnerType > mOwnerType
::ll::TypedStorage< 4, 4, uint > mRange
::ll::TypedStorage< 8, 64, ::std::optional<::VibrationInfo > > mInFlightVibrationInfo
::ll::TypedStorage< 4, 4, int > mInFlightVibrationTicks
::ll::TypedStorage< 8, 8, ::std::reference_wrapper<::GameEvent const > > mLatestReceivedVibration

Member Function Documentation

◆ handleGameEvent()

virtual void VibrationListener::handleGameEvent ( ::GameEvent const & gameEvent,
::GameEventContext const & gameEventContext,
::BlockSource & region )
virtual

Implements IGameEventListener.

◆ getRange()

virtual uint VibrationListener::getRange ( ) const
virtual

Implements IGameEventListener.

◆ getPositionSource()

virtual::GameEvents::PositionSource const & VibrationListener::getPositionSource ( ) const
virtual

Implements IGameEventListener.

◆ _areAdjacentChunksTicking()

MCAPI bool VibrationListener::_areAdjacentChunksTicking ( ::BlockSource & region) 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.

◆ _requestVibrationParticle()

MCAPI void VibrationListener::_requestVibrationParticle ( ::BlockSource & region,
::BlockPos const & originPos,
float timeToLive )
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.

◆ _tryAdvanceInFlightVibration()

MCAPI bool VibrationListener::_tryAdvanceInFlightVibration ( ::BlockSource & region)
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 VibrationListener::load ( ::CompoundTag const & tag,
::DataLoadHelper & dataLoadHelper )
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.

◆ save()

MCAPI void VibrationListener::save ( ::CompoundTag & tag) 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.

◆ tick()

MCAPI void VibrationListener::tick ( ::BlockSource & region)
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.

◆ $getRange()

MCAPI uint VibrationListener::$getRange ( ) 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.

◆ $getPositionSource()

MCAPI::GameEvents::PositionSource const & VibrationListener::$getPositionSource ( ) 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.

◆ $vftable()

MCAPI void ** VibrationListener::$vftable ( )
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.

◆ $getDeliveryMode()

MCAPI::IGameEventListener::DeliveryMode IGameEventListener::$getDeliveryMode ( ) const
inherited
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 file: