LeviLamina
Loading...
Searching...
No Matches
BlockEventDispatcher.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
#include "mc/world/events/ListenerInfo.h"
5
6
// auto generated inclusion list
7
#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
Actor
;
12
class
Block
;
13
class
BlockEventDispatcherToken
;
14
class
BlockPos
;
15
class
ListenerInfo
;
16
class
Vec3
;
17
// clang-format on
18
19
class
BlockEventDispatcher
:
public
::Bedrock::EnableNonOwnerReferences
{
20
public
:
21
// BlockEventDispatcher inner types define
22
using
CallbackFunction = ::std::function<void(
::BlockPos
const
&, uint,
::Block
const
&,
::Actor
*)>;
23
24
public
:
25
// member variables
26
// NOLINTBEGIN
27
::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::unique_ptr<::ListenerInfo>>> mRegisteredListeners;
28
::ll::TypedStorage<4, 4, int> mHandleCounter;
29
// NOLINTEND
30
31
public
:
32
// virtual functions
33
// NOLINTBEGIN
34
// vIndex: 0
35
virtual
~BlockEventDispatcher
()
/*override*/
=
default
;
36
// NOLINTEND
37
38
public
:
39
// member functions
40
// NOLINTBEGIN
41
MCAPI ::BlockEventDispatcherToken registerListener(
42
::Vec3
const
& shapePos,
43
float
shapeRadius,
44
::std::function<
void
(
::BlockPos
const
&, uint,
::Block
const
&,
::Actor
*)> callback
45
);
46
// NOLINTEND
47
48
public
:
49
// destructor thunk
50
// NOLINTBEGIN
51
52
// NOLINTEND
53
54
public
:
55
// vftables
56
// NOLINTBEGIN
57
MCAPI
static
void
** $vftable();
58
// NOLINTEND
59
};
Actor
Definition
Actor.h:104
Bedrock::EnableNonOwnerReferences
Definition
EnableNonOwnerReferences.h:7
BlockEventDispatcherToken
Definition
BlockEventDispatcherToken.h:14
BlockEventDispatcher
Definition
BlockEventDispatcher.h:19
BlockPos
Definition
BlockPos.h:18
Block
Definition
Block.h:36
ListenerInfo
Definition
ListenerInfo.h:13
Vec3
Definition
Vec3.h:10
src
mc
world
events
BlockEventDispatcher.h
Generated on Sat Apr 26 2025 05:56:09 for LeviLamina by
1.12.0