LeviLamina
Loading...
Searching...
No Matches
ScriptV010Events.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/TypedObjectHandle.h"
8#include "mc/deps/scripting/lifetime_registry/WeakLifetimeScope.h"
9#include "mc/scripting/modules/minecraft/events/IScriptWorldAfterEvents.h"
10#include "mc/scripting/modules/minecraft/events/IScriptWorldBeforeEvents.h"
11#include "mc/scripting/modules/minecraft/events/ScriptFilteredEventSignal.h"
12
13// auto generated forward declare list
14// clang-format off
15class Level;
16class Player;
17struct ChatEvent;
18struct ItemUseEvent;
19struct ItemUseOnEvent;
20namespace ScriptModuleMinecraft { class ScriptActor; }
21namespace ScriptModuleMinecraft { class ScriptActorEventListener; }
22namespace ScriptModuleMinecraft { class ScriptBlockEventListener; }
23namespace ScriptModuleMinecraft { class ScriptGlobalEventListeners; }
24namespace ScriptModuleMinecraft { class ScriptItemEventListener; }
25namespace ScriptModuleMinecraft { class ScriptLevelEventListener; }
26namespace ScriptModuleMinecraft { class ScriptPlayerEventListener; }
27namespace ScriptModuleMinecraft { class ScriptServerNetworkEventListener; }
28namespace ScriptModuleMinecraft { struct EmptyFilter; }
29namespace ScriptModuleMinecraft { struct ScriptActorCreateEvent; }
30namespace ScriptModuleMinecraft { struct ScriptActorHitAfterEvent; }
31namespace ScriptModuleMinecraft { struct ScriptActorHitBlockAfterEvent; }
32namespace ScriptModuleMinecraft { struct ScriptActorHitEntityAfterEvent; }
33namespace ScriptModuleMinecraft { struct ScriptActorHurtAfterEvent; }
34namespace ScriptModuleMinecraft { struct ScriptActorRemoveAfterEvent; }
35namespace ScriptModuleMinecraft { struct ScriptChatSendBeforeEvent; }
36namespace ScriptModuleMinecraft { struct ScriptDataDrivenActorTriggerAfterEvent; }
37namespace ScriptModuleMinecraft { struct ScriptDataDrivenActorTriggerAfterEventIntermediateData; }
38namespace ScriptModuleMinecraft { struct ScriptItemCompleteUseAfterEvent; }
39namespace ScriptModuleMinecraft { struct ScriptItemReleaseUseAfterEvent; }
40namespace ScriptModuleMinecraft { struct ScriptItemStartUseAfterEvent; }
41namespace ScriptModuleMinecraft { struct ScriptItemStopUseAfterEvent; }
42namespace ScriptModuleMinecraft { struct ScriptItemUseBeforeEvent; }
43namespace ScriptModuleMinecraft { struct ScriptItemUseOnAfterEvent; }
44namespace ScriptModuleMinecraft { struct ScriptItemUseOnBeforeEvent; }
45namespace ScriptModuleMinecraft { struct ScriptPlayerJoinAfterEvent; }
46namespace ScriptModuleMinecraft { struct ScriptPlayerLeaveAfterEvent; }
47namespace ScriptModuleMinecraft { struct ScriptTickEvent; }
48namespace ScriptModuleMinecraft { struct ScriptWeatherChangedAfterEvent; }
49namespace ScriptModuleMinecraft { struct ScriptWorldInitializeAfterEvent; }
50namespace ScriptModuleMinecraft::EventFilters { struct ScriptActorEventFilter; }
51namespace ScriptModuleMinecraft::EventFilters { struct ScriptDataDrivenActorTriggerEventFilter; }
52namespace Scripting { class ModuleBindingBuilder; }
53// clang-format on
54
55namespace ScriptModuleMinecraft {
56
59public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
63 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptV010Events>> mHandle;
64 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Level*>> mLevel;
65 ::ll::TypedStorage<8, 8, ::ScriptModuleMinecraft::ScriptGlobalEventListeners*> mGlobalEventListeners;
66 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptActorEventListener>> mActorEventListener;
67 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptBlockEventListener>> mBlockEventListener;
68 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptItemEventListener>> mItemEventListener;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptLevelEventListener>> mLevelEventListener;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptPlayerEventListener>>
71 mPlayerEventListener;
72 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptServerNetworkEventListener>>
73 mServerNetworkEventListener;
74 ::ll::TypedStorage<
75 8,
76 32,
79 0,
81 mTickSignal;
82 ::ll::TypedStorage<
83 8,
84 32,
87 0,
89 mWeatherChangeSignal;
90 ::ll::TypedStorage<
91 8,
92 32,
95 0,
97 mWorldInitializeSignal;
98 ::ll::TypedStorage<
99 8,
100 32,
103 0,
105 mPlayerJoinEventSignal;
106 ::ll::TypedStorage<
107 8,
108 32,
111 0,
113 mPlayerLeaveEventSignal;
114 ::ll::TypedStorage<
115 8,
116 32,
119 0,
121 mBeforeChatSignal;
122 ::ll::TypedStorage<
123 8,
124 32,
127 0,
129 mEntityCreateSignal;
130 ::ll::TypedStorage<
131 8,
132 32,
135 0,
137 mEntityHitSignal;
138 ::ll::TypedStorage<
139 8,
140 32,
143 0,
145 mDataDrivenEntityEventSend;
146 ::ll::TypedStorage<
147 8,
148 32,
151 0,
153 mEntityHurtSignal;
154 ::ll::TypedStorage<
155 8,
156 32,
159 0,
161 mItemBeforeUseEventSignal;
162 ::ll::TypedStorage<
163 8,
164 32,
167 0,
169 mItemBeforeUseOnEventSignal;
170 ::ll::TypedStorage<
171 8,
172 32,
175 0,
177 mItemUseOnEventSignal;
178 ::ll::TypedStorage<
179 8,
180 32,
183 0,
185 mItemStartChargeEventSignal;
186 ::ll::TypedStorage<
187 8,
188 32,
191 0,
193 mItemCompleteChargeEventSignal;
194 ::ll::TypedStorage<
195 8,
196 32,
199 0,
201 mItemReleaseChargeEventSignal;
202 ::ll::TypedStorage<
203 8,
204 32,
207 0,
209 mItemStopChargeEventSignal;
210 // NOLINTEND
211
212public:
213 // prevent constructor by default
214 ScriptV010Events& operator=(ScriptV010Events const&);
217
218public:
219 // virtual functions
220 // NOLINTBEGIN
221 // vIndex: 0
222 virtual ~ScriptV010Events() /*override*/;
223
224 // vIndex: 1
225 virtual ::Level& getLevel() const /*override*/;
226
227 // vIndex: 3
228 virtual void onWeatherChanged(
230 weatherChangedEvent
231 ) /*override*/;
232
233 // vIndex: 4
234 virtual void onWorldInitialize(
236 worldInitializeEvent
237 ) /*override*/;
238
239 // vIndex: 5
240 virtual void onPlayerJoin(
242 ) /*override*/;
243
244 // vIndex: 6
245 virtual void onPlayerLeave(
247 ) /*override*/;
248
249 // vIndex: 1
250 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
251 onBeforeChat(::ChatEvent const& chatEvent, ::Player const& player) /*override*/;
252
253 // vIndex: 11
254 virtual void onActorRemoved(
257 ) /*override*/;
258
259 // vIndex: 12
260 virtual void onActorHitEntity(
262 actorHitEntityEvent
263 ) /*override*/;
264
265 // vIndex: 13
266 virtual void onActorHitBlock(
268 ) /*override*/;
269
270 // vIndex: 15
271 virtual void onDataDrivenActorEventSend(
272 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData>&
273 dataDrivenActorEventSend
274 ) /*override*/;
275
276 // vIndex: 16
277 virtual void onActorHurt(
279 ) /*override*/;
280
281 // vIndex: 13
282 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
283 onBeforeItemUse(::Player const& player, ::ItemUseEvent const& itemEvent) /*override*/;
284
285 // vIndex: 14
286 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
287 onBeforeItemUseOn(::Player const& player, ::ItemUseOnEvent const& itemEvent) /*override*/;
288
289 // vIndex: 40
290 virtual void onItemUseOn(
292 ) /*override*/;
293
294 // vIndex: 43
295 virtual void onItemStartUse(
297 ) /*override*/;
298
299 // vIndex: 44
300 virtual void onItemCompleteUse(
302 ) /*override*/;
303
304 // vIndex: 45
305 virtual void onItemReleaseUse(
307 ) /*override*/;
308
309 // vIndex: 46
310 virtual void onItemStopUse(
312 ) /*override*/;
313 // NOLINTEND
314
315public:
316 // member functions
317 // NOLINTBEGIN
319
320 MCNAPI ScriptV010Events(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::Level*> level);
321
322 MCNAPI ::ScriptModuleMinecraft::ScriptV010Events& operator=(::ScriptModuleMinecraft::ScriptV010Events&&);
323
324 MCNAPI void registerListener(
327 );
328 // NOLINTEND
329
330public:
331 // static functions
332 // NOLINTBEGIN
333 MCNAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
334 // NOLINTEND
335
336public:
337 // constructor thunks
338 // NOLINTBEGIN
340
341 MCNAPI void* $ctor(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::Level*> level);
342 // NOLINTEND
343
344public:
345 // destructor thunk
346 // NOLINTBEGIN
347 MCNAPI void $dtor();
348 // NOLINTEND
349
350public:
351 // virtual function thunks
352 // NOLINTBEGIN
353 MCNAPI ::Level& $getLevel() const;
354
355 MCNAPI void $onWeatherChanged(
357 weatherChangedEvent
358 );
359
362 worldInitializeEvent
363 );
364
365 MCNAPI void $onPlayerJoin(
367 );
368
369 MCNAPI void $onPlayerLeave(
371 );
372
373 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
374 $onBeforeChat(::ChatEvent const& chatEvent, ::Player const& player);
375
376 MCNAPI void $onActorRemoved(
379 );
380
381 MCNAPI void $onActorHitEntity(
383 actorHitEntityEvent
384 );
385
386 MCNAPI void $onActorHitBlock(
388 );
389
391 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData>&
392 dataDrivenActorEventSend
393 );
394
395 MCNAPI void
397
398 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
399 $onBeforeItemUse(::Player const& player, ::ItemUseEvent const& itemEvent);
400
401 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
402 $onBeforeItemUseOn(::Player const& player, ::ItemUseOnEvent const& itemEvent);
403
404 MCNAPI void
406
407 MCNAPI void $onItemStartUse(
409 );
410
413 );
414
415 MCNAPI void $onItemReleaseUse(
417 );
418
419 MCNAPI void $onItemStopUse(
421 );
422 // NOLINTEND
423
424public:
425 // vftables
426 // NOLINTBEGIN
428
430 // NOLINTEND
431};
432
433} // namespace ScriptModuleMinecraft
Definition Level.h:238
Definition Player.h:119
Definition IScriptWorldAfterEvents.h:63
Definition IScriptWorldBeforeEvents.h:40
Definition ScriptFilteredEventSignal.h:8
Definition ScriptGlobalEventListeners.h:14
Definition ScriptV010Events.h:58
MCAPI void $onWeatherChanged(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWeatherChangedAfterEvent > &weatherChangedEvent)
MCAPI void $onDataDrivenActorEventSend(::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData > &dataDrivenActorEventSend)
static MCAPI void ** $vftableForIScriptWorldBeforeEvents()
MCAPI void $onItemUseOn(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnAfterEvent > &itemEvent)
MCAPI ScriptV010Events(::ScriptModuleMinecraft::ScriptV010Events &&)
MCAPI::ScriptModuleMinecraft::ScriptV010Events & operator=(::ScriptModuleMinecraft::ScriptV010Events &&)
static MCAPI void bind(::Scripting::ModuleBindingBuilder &moduleBuilder)
MCAPI void $onActorHitEntity(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHitEntityAfterEvent > &actorHitEntityEvent)
MCAPI void $onPlayerLeave(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerLeaveAfterEvent > &playerLeaveEvent)
MCAPI void $onItemStopUse(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStopUseAfterEvent > &itemEvent)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent > > $onBeforeChat(::ChatEvent const &chatEvent, ::Player const &player)
MCAPI void $onItemReleaseUse(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemReleaseUseAfterEvent > &itemEvent)
MCAPI void registerListener(::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptV010Events > handle, ::ScriptModuleMinecraft::ScriptGlobalEventListeners &globalEventListeners)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent > > $onBeforeItemUseOn(::Player const &player, ::ItemUseOnEvent const &itemEvent)
MCAPI void $onItemCompleteUse(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemCompleteUseAfterEvent > &itemEvent)
static MCAPI void ** $vftableForIScriptWorldAfterEvents()
MCAPI void * $ctor(::Scripting::WeakLifetimeScope const &scope, ::gsl::not_null<::Level * > level)
MCAPI void $onActorHitBlock(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHitBlockAfterEvent > &actorHitBlockEvent)
MCAPI void $onActorRemoved(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor > const &removedActor, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorRemoveAfterEvent > &)
MCAPI void * $ctor(::ScriptModuleMinecraft::ScriptV010Events &&)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent > > $onBeforeItemUse(::Player const &player, ::ItemUseEvent const &itemEvent)
MCAPI void $onWorldInitialize(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldInitializeAfterEvent > &worldInitializeEvent)
MCAPI void $onPlayerJoin(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerJoinAfterEvent > &playerJoinEvent)
MCAPI void $onItemStartUse(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStartUseAfterEvent > &itemEvent)
MCAPI ScriptV010Events(::Scripting::WeakLifetimeScope const &scope, ::gsl::not_null<::Level * > level)
MCAPI void $onActorHurt(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtAfterEvent > &hurtEvent)
Definition ModuleBindingBuilder.h:30
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ChatEvent.h:14
Definition ItemUseEvent.h:9
Definition ItemUseOnEvent.h:11
Definition EmptyFilter.h:12
Definition ScriptDataDrivenActorTriggerEventFilter.h:18
Definition ScriptActorCreateEvent.h:16
Definition ScriptActorHitAfterEvent.h:12
Definition ScriptActorHurtAfterEvent.h:12
Definition ScriptChatSendBeforeEvent.h:15
Definition ScriptDataDrivenActorTriggerAfterEvent.h:14
Definition ScriptItemCompleteUseAfterEvent.h:20
Definition ScriptItemReleaseUseAfterEvent.h:19
Definition ScriptItemStartUseAfterEvent.h:19
Definition ScriptItemStopUseAfterEvent.h:19
Definition ScriptItemUseBeforeEvent.h:15
Definition ScriptItemUseOnAfterEvent.h:22
Definition ScriptItemUseOnBeforeEvent.h:18
Definition ScriptPlayerJoinAfterEvent.h:16
Definition ScriptPlayerLeaveAfterEvent.h:12
Definition ScriptTickEvent.h:12
Definition ScriptWeatherChangedAfterEvent.h:12
Definition ScriptWorldInitializeAfterEvent.h:12
Definition TypedObjectHandle.h:8