Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptBlockGameplayHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/gameplayhandlers/BlockGameplayHandler.h"
7#include "mc/gameplayhandlers/CoordinatorResult.h"
8#include "mc/gameplayhandlers/EventHandlerDispatcher.h"
9#include "mc/gameplayhandlers/GameplayHandlerResult.h"
10#include "mc/scripting/event_handlers/ScriptEventHandler.h"
11
12// auto generated forward declare list
13// clang-format off
17namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
18// clang-format on
19
20class ScriptBlockGameplayHandler : public ::EventHandlerDispatcher<::BlockGameplayHandler>,
21 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ::GameplayHandlerResult<::CoordinatorResult>
26 handleEvent(::ExplosionStartedEvent& explosionStartedEvent) /*override*/;
27
28 virtual ::GameplayHandlerResult<::CoordinatorResult>
29 handleEvent(::BlockTryDestroyByPlayerEvent& eventData) /*override*/;
30
31 virtual ::GameplayHandlerResult<::CoordinatorResult>
32 handleEvent(::BlockTryPlaceByPlayerEvent const& eventData) /*override*/;
33 // NOLINTEND
34
35public:
36 // virtual function thunks
37 // NOLINTBEGIN
38 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ExplosionStartedEvent& explosionStartedEvent);
39
40 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::BlockTryDestroyByPlayerEvent& eventData);
41
42 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::BlockTryPlaceByPlayerEvent const& eventData);
43
44
45 // NOLINTEND
46};
Definition EventHandlerDispatcher.h:6
Definition ScriptBlockGameplayHandler.h:21
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::ExplosionStartedEvent &explosionStartedEvent)
Definition ScriptEventHandler.h:6
Definition IScriptWorldBeforeEvents.h:50
Definition BlockTryDestroyByPlayerEvent.h:16
Definition BlockTryPlaceByPlayerEvent.h:16
Definition ExplosionStartedEvent.h:15