LeviLamina
Loading...
Searching...
No Matches
BlockEventPublishingExecutor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/core/utility/pub_sub/Publisher.h"
5#include "mc/world/level/block/block_events/BlockEventBlockTypeExecutor.h"
6
7namespace BlockEvents::Detail {
8
9template <class T0, class T1 = void>
11public:
12 Bedrock::PubSub::
13 Publisher<void(T0&), Bedrock::PubSub::ThreadModel::SingleThreaded, Bedrock::PubSub::ReturnPolicyType::Aggregate>
14 mPublisher;
15
16 virtual ~BlockEventPublishingExecutor() = default;
17
18 virtual ::BlockEvents::EventType getEventType() const;
19
20 virtual void dispatch(T0& event);
21};
22
23} // namespace BlockEvents::Detail
Definition BlockEventBlockTypeExecutor.h:17
Definition BlockEventPublishingExecutor.h:10