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

Public Types

using CallbackFunction = ::std::function<void(::BlockPos const&, uint, ::Block const&, ::Actor*)>

Public Member Functions

MCAPI void dispatchEvent (::BlockPos const &pos, uint layer, ::Block const &block, ::Block const &oldBlock, ::Actor *source)
MCAPI::BlockEventDispatcherToken registerListener (::Vec3 const &shapePos, float shapeRadius, ::std::function< void(::BlockPos const &, uint, ::Block const &, ::Actor *)> callback)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map< int, ::std::unique_ptr<::ListenerInfo > > > mRegisteredListeners
::ll::TypedStorage< 4, 4, int > mHandleCounter
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Member Function Documentation

◆ dispatchEvent()

MCAPI void BlockEventDispatcher::dispatchEvent ( ::BlockPos const & pos,
uint layer,
::Block const & block,
::Block const & oldBlock,
::Actor * source )
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.

◆ registerListener()

MCAPI::BlockEventDispatcherToken BlockEventDispatcher::registerListener ( ::Vec3 const & shapePos,
float shapeRadius,
::std::function< void(::BlockPos const &, uint, ::Block const &, ::Actor *)> callback )
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 ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
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: