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/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/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
61 MCNAPI void registerListeners();
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCNAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCNAPI void* $ctor(::Scripting::WeakLifetimeScope scope, ::gsl::not_null<::ServerLevel*> level);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCNAPI void $dtor();
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCNAPI ::std::optional<
88
89 MCNAPI ::std::optional<
92
93
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
102
103} // 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:31
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:14
Definition ServerLevel.h:59
Definition IncomingPacketEvent.h:14
Definition OutgoingPacketEvent.h:14
Definition ScriptPacketReceiveBeforeEvent.h:18
Definition ScriptPacketSendBeforeEvent.h:18
Definition Alias.h:14