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 virtual ~BlockEventCoordinator() /*override*/ = default;
32 // NOLINTEND
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCFOLD void registerBlockGameplayHandler(::std::unique_ptr<::BlockGameplayHandler>&& handler);
38
39 MCAPI void
40 sendBlockDestructionStarted(::Player& player, ::BlockPos const& blockPos, ::Block const& hitBlock, uchar face);
41
42 MCAPI void
43 sendBlockPlacedByPlayer(::Player& player, ::Block const& placedBlock, ::BlockPos const& pos, bool isUnderwater);
44
45 MCAPI ::CoordinatorResult sendEvent(::EventRef<::BlockGameplayEvent<::CoordinatorResult>> const& event);
46
47 MCAPI ::CoordinatorResult sendEvent(::EventRef<::MutableBlockGameplayEvent<::CoordinatorResult>> event);
48 // NOLINTEND
49
50public:
51 // vftables
52 // NOLINTBEGIN
53 MCNAPI static void** $vftable();
54 // NOLINTEND
55};
Definition BlockEventCoordinator.h:21
static MCAPI void ** $vftable()
Definition BlockEventListener.h:22
Definition BlockGameplayHandler.h:13
Definition BlockPos.h:19
Definition Block.h:43
Definition EventCoordinator.h:6
Definition EventRef.h:6
Definition Player.h:125
Definition BlockGameplayEvent.h:22
Definition MutableBlockGameplayEvent.h:9