LeviLamina
Loading...
Searching...
No Matches
BlockEventCoordinator.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/gameplayhandlers/CoordinatorResult.h"
7
#include "mc/world/events/BlockGameplayEvent.h"
8
#include "mc/world/events/EventCoordinator.h"
9
#include "mc/world/events/EventRef.h"
10
#include "mc/world/events/MutableBlockGameplayEvent.h"
11
12
// auto generated forward declare list
13
// clang-format off
14
class
Block
;
15
class
BlockEventListener
;
16
class
BlockGameplayHandler
;
17
class
BlockPos
;
18
class
Player
;
19
// clang-format on
20
21
class
BlockEventCoordinator
:
public
::EventCoordinator
<::BlockEventListener> {
22
public
:
23
// member variables
24
// NOLINTBEGIN
25
::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockGameplayHandler>> mBlockGameplayHandler;
26
// NOLINTEND
27
28
public
:
29
// virtual functions
30
// NOLINTBEGIN
31
// vIndex: 0
32
virtual
~BlockEventCoordinator
()
/*override*/
=
default
;
33
// NOLINTEND
34
35
public
:
36
// member functions
37
// NOLINTBEGIN
38
MCFOLD
void
registerBlockGameplayHandler(::std::unique_ptr<::BlockGameplayHandler>&& handler);
39
40
MCAPI
void
41
sendBlockDestructionStarted(
::Player
& player,
::BlockPos
const
& blockPos,
::Block
const
& hitBlock, uchar face);
42
43
MCAPI
void
44
sendBlockPlacedByPlayer(
::Player
& player,
::Block
const
& placedBlock,
::BlockPos
const
& pos,
bool
isUnderwater);
45
46
MCAPI ::CoordinatorResult sendEvent(
::EventRef
<
::MutableBlockGameplayEvent<::CoordinatorResult>
> event);
47
48
MCAPI ::CoordinatorResult sendEvent(
::EventRef
<
::BlockGameplayEvent<::CoordinatorResult>
>
const
& event);
49
// NOLINTEND
50
51
public
:
52
// destructor thunk
53
// NOLINTBEGIN
54
55
// NOLINTEND
56
57
public
:
58
// vftables
59
// NOLINTBEGIN
60
MCAPI
static
void
** $vftable();
61
// NOLINTEND
62
};
BlockEventCoordinator
Definition
BlockEventCoordinator.h:21
BlockEventListener
Definition
BlockEventListener.h:22
BlockGameplayHandler
Definition
BlockGameplayHandler.h:13
BlockPos
Definition
BlockPos.h:18
Block
Definition
Block.h:36
EventCoordinator
Definition
EventCoordinator.h:6
EventRef
Definition
EventRef.h:6
Player
Definition
Player.h:119
BlockGameplayEvent
Definition
BlockGameplayEvent.h:22
MutableBlockGameplayEvent
Definition
MutableBlockGameplayEvent.h:9
src
mc
world
events
BlockEventCoordinator.h
Generated on Sat Apr 26 2025 05:56:09 for LeviLamina by
1.12.0