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