LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptBlockBreakingEventListener Class Reference

Classes

struct  PlayerBreakingBlockInfo

Public Types

using SendCancelBreakingFunction = ::std::function<void(::Player&, ::BlockPos const&, ::Block const&, uchar, int)>
using SendStartBreakingFunction = ::std::function<void(::Player&, ::BlockPos const&, ::Block const&, uchar)>

Public Member Functions

MCAPI ScriptBlockBreakingEventListener (::std::function< void(::Player &, ::BlockPos const &, ::Block const &, uchar)> sendStartBreakingFunction, ::std::function< void(::Player &, ::BlockPos const &, ::Block const &, uchar, int)> sendCancelBreakingFunction)
MCAPI void _flushPlayerBreaking (::Player &player, int previousProgress)
MCAPI void _startBreakingBlock (::Player &player, ::BlockPos const &blockPos, ::Block const &hitBlock, uchar face, int previousProgress)
MCAPI void onBreakBlock (::Player &player)
MCAPI void * $ctor (::std::function< void(::Player &, ::BlockPos const &, ::Block const &, uchar)> sendStartBreakingFunction, ::std::function< void(::Player &, ::BlockPos const &, ::Block const &, uchar, int)> sendCancelBreakingFunction)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map< ::ActorUniqueID, ::ScriptModuleMinecraft::ScriptBlockBreakingEventListener::PlayerBreakingBlockInfo > > mPlayerBreakingBlock
::ll::TypedStorage< 8, 64, ::std::function< void(::Player &, ::BlockPos const &, ::Block const &, uchar)> > mSendStartBreakingFunction
::ll::TypedStorage< 8, 64, ::std::function< void(::Player &, ::BlockPos const &, ::Block const &, uchar, int)> > mSendCancelBreakingFunction

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