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
14class Block;
17class BlockPos;
18class Player;
19// clang-format on
20
21class BlockEventCoordinator : public ::EventCoordinator<::BlockEventListener> {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockGameplayHandler>> mBlockGameplayHandler;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 0
32 virtual ~BlockEventCoordinator() /*override*/ = default;
33 // NOLINTEND
34
35public:
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
51public:
52 // destructor thunk
53 // NOLINTBEGIN
54
55 // NOLINTEND
56
57public:
58 // vftables
59 // NOLINTBEGIN
60 MCAPI static void** $vftable();
61 // NOLINTEND
62};
Definition BlockEventCoordinator.h:21
Definition BlockEventListener.h:22
Definition BlockGameplayHandler.h:13
Definition BlockPos.h:18
Definition Block.h:36
Definition EventCoordinator.h:6
Definition EventRef.h:6
Definition Player.h:119
Definition BlockGameplayEvent.h:22
Definition MutableBlockGameplayEvent.h:9