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
7
namespace
BlockEvents::Detail {
8
9
template
<
class
T0,
class
T1 =
void
>
10
class
BlockEventPublishingExecutor
:
public
BlockEvents::Detail::BlockEventBlockTypeExecutor
{
11
public
:
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
BlockEvents::Detail::BlockEventBlockTypeExecutor
Definition
BlockEventBlockTypeExecutor.h:17
BlockEvents::Detail::BlockEventPublishingExecutor
Definition
BlockEventPublishingExecutor.h:10
Bedrock::PubSub::ThreadModel::SingleThreaded
Definition
SingleThreaded.h:7
src
mc
world
level
block
block_events
BlockEventPublishingExecutor.h
Generated on
for LeviLamina by
1.16.1