LeviLamina
Loading...
Searching...
No Matches
BlockGameplayEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/events/ActorInsideBlockEvent.h"
5#include "mc/world/events/ActorStandOnBlockEvent.h"
6#include "mc/world/events/BlockPatternPostEvent.h"
7#include "mc/world/events/BlockPatternPreEvent.h"
8#include "mc/world/events/BlockRandomTickEvent.h"
9#include "mc/world/events/BlockTryPlaceByPlayerEvent.h"
10#include "mc/world/events/ButtonPushEvent.h"
11#include "mc/world/events/ChestBlockTryPairEvent.h"
12#include "mc/world/events/CraftUISetResultNameEvent.h"
13#include "mc/world/events/EventVariantImpl.h"
14#include "mc/world/events/LeverActionEvent.h"
15#include "mc/world/events/PistonActionEvent.h"
16#include "mc/world/events/PressurePlatePopEvent.h"
17#include "mc/world/events/PressurePlatePushEvent.h"
18#include "mc/world/events/TargetBlockHitEvent.h"
19#include "mc/world/events/TripWireTripEvent.h"
20
21template <typename Result>
23
24template <>
25struct BlockGameplayEvent<void> : ConstEventVariant<BlockPatternPostEvent> {};
26
27template <>
28struct BlockGameplayEvent<CoordinatorResult> : ConstEventVariant<
29 ActorInsideBlockEvent, // 0
30 ActorStandOnBlockEvent, // 1
31 BlockPatternPreEvent, // 2
32 BlockRandomTickEvent, // 3
33 ChestBlockTryPairEvent, // 4
34 PistonActionEvent, // 5
35 LeverActionEvent, // 6
36 ButtonPushEvent, // 7
37 PressurePlatePushEvent, // 8
38 PressurePlatePopEvent, // 9
39 TargetBlockHitEvent, // 10
40 TripWireTripEvent, // 11
41 BlockTryPlaceByPlayerEvent // 12
42 > {};
43
44template <>
45struct BlockGameplayEvent<std::optional<std::string>> : ConstEventVariant<CraftUISetResultNameEvent> {};
Definition EventVariantImpl.h:46
STL namespace.
Definition BlockGameplayEvent.h:22