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