Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
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
14
struct
BlockTryDestroyByPlayerEvent
;
15
struct
BlockTryPlaceByPlayerEvent
;
16
struct
ExplosionStartedEvent
;
17
namespace
ScriptModuleMinecraft {
class
IScriptWorldBeforeEvents
; }
18
// clang-format on
19
20
class
ScriptBlockGameplayHandler
:
public
::EventHandlerDispatcher
<::BlockGameplayHandler>,
21
public
::ScriptEventHandler
<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
22
public
:
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
35
public
:
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
};
EventHandlerDispatcher
Definition
EventHandlerDispatcher.h:6
ScriptBlockGameplayHandler
Definition
ScriptBlockGameplayHandler.h:21
ScriptBlockGameplayHandler::$handleEvent
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::ExplosionStartedEvent &explosionStartedEvent)
ScriptEventHandler
Definition
ScriptEventHandler.h:6
ScriptModuleMinecraft::IScriptWorldBeforeEvents
Definition
IScriptWorldBeforeEvents.h:50
BlockTryDestroyByPlayerEvent
Definition
BlockTryDestroyByPlayerEvent.h:16
BlockTryPlaceByPlayerEvent
Definition
BlockTryPlaceByPlayerEvent.h:16
ExplosionStartedEvent
Definition
ExplosionStartedEvent.h:15
src
mc
scripting
event_handlers
ScriptBlockGameplayHandler.h
Generated on
for LeviLamina by
1.16.1