Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptNetworkBeforeEvents.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/deps/script_core/lifetime_registry/scripting/WeakHandleFromThis.h"
8#include "mc/scripting/modules/minecraft_net/events/IScriptNetworkBeforeEvents.h"
9
10// auto generated forward declare list
11// clang-format off
12class ServerLevel;
15namespace ScriptModuleMinecraftNet { struct ScriptPacketReceiveBeforeEvent; }
16namespace ScriptModuleMinecraftNet { struct ScriptPacketSendBeforeEvent; }
17namespace Scripting { class ModuleBindingBuilder; }
18namespace Scripting { class WeakLifetimeScope; }
19// clang-format on
20
21namespace ScriptModuleMinecraftNet {
22
23class ScriptNetworkBeforeEvents
25 public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraftNet::ScriptNetworkBeforeEvents> {
26public:
27 // member variables
28 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 ScriptNetworkBeforeEvents& operator=(ScriptNetworkBeforeEvents const&);
39 ScriptNetworkBeforeEvents(ScriptNetworkBeforeEvents const&);
40 ScriptNetworkBeforeEvents();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ~ScriptNetworkBeforeEvents() /*override*/;
46
47 virtual ::std::optional<
49 onBeforePacketReceive(::IncomingPacketEvent const& packetEvent) /*override*/;
50
51 virtual ::std::optional<
53 onBeforePacketSend(::OutgoingPacketEvent const& packetEvent) /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCNAPI ScriptNetworkBeforeEvents(::Scripting::WeakLifetimeScope scope, ::gsl::not_null<::ServerLevel*> level);
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCNAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCNAPI void* $ctor(::Scripting::WeakLifetimeScope scope, ::gsl::not_null<::ServerLevel*> level);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCNAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI ::std::optional<
86
87 MCNAPI ::std::optional<
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
100
101} // namespace ScriptModuleMinecraftNet
Definition IScriptNetworkBeforeEvents.h:18
MCAPI void * $ctor(::Scripting::WeakLifetimeScope scope, ::gsl::not_null<::ServerLevel * > level)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptPacketSendBeforeEvent > > $onBeforePacketSend(::OutgoingPacketEvent const &packetEvent)
MCAPI ScriptNetworkBeforeEvents(::Scripting::WeakLifetimeScope scope, ::gsl::not_null<::ServerLevel * > level)
static MCAPI void bind(::Scripting::ModuleBindingBuilder &moduleBuilder)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptPacketReceiveBeforeEvent > > $onBeforePacketReceive(::IncomingPacketEvent const &packetEvent)
Definition ModuleBindingBuilder.h:22
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ServerLevel.h:58
Definition IncomingPacketEvent.h:14
Definition OutgoingPacketEvent.h:14
Definition ScriptPacketReceiveBeforeEvent.h:12
Definition ScriptPacketSendBeforeEvent.h:12
Definition Alias.h:14