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/script_engine/Closure.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; }
53namespace Scripting { class WeakLifetimeScope; }
54// clang-format on
55
56namespace ScriptModuleMinecraft {
57
60public:
61 // member variables
62 // NOLINTBEGIN
63 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
64 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptV010Events>> mHandle;
65 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Level*>> mLevel;
66 ::ll::TypedStorage<8, 8, ::ScriptModuleMinecraft::ScriptGlobalEventListeners*> mGlobalEventListeners;
67 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptActorEventListener>> mActorEventListener;
68 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptBlockEventListener>> mBlockEventListener;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptItemEventListener>> mItemEventListener;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptLevelEventListener>> mLevelEventListener;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptPlayerEventListener>>
72 mPlayerEventListener;
73 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptServerNetworkEventListener>>
74 mServerNetworkEventListener;
75 ::ll::TypedStorage<
76 8,
77 32,
80 0,
84 mTickSignal;
85 ::ll::TypedStorage<
86 8,
87 32,
90 0,
94 mWeatherChangeSignal;
95 ::ll::TypedStorage<
96 8,
97 32,
100 0,
104 mWorldInitializeSignal;
105 ::ll::TypedStorage<
106 8,
107 32,
110 0,
114 mPlayerJoinEventSignal;
115 ::ll::TypedStorage<
116 8,
117 32,
120 0,
124 mPlayerLeaveEventSignal;
125 ::ll::TypedStorage<
126 8,
127 32,
130 0,
134 mBeforeChatSignal;
135 ::ll::TypedStorage<
136 8,
137 32,
140 0,
144 mEntityCreateSignal;
145 ::ll::TypedStorage<
146 8,
147 32,
150 0,
154 mEntityHitSignal;
155 ::ll::TypedStorage<
156 8,
157 32,
160 0,
164 mDataDrivenEntityEventSend;
165 ::ll::TypedStorage<
166 8,
167 32,
170 0,
174 mEntityHurtSignal;
175 ::ll::TypedStorage<
176 8,
177 32,
180 0,
184 mItemBeforeUseEventSignal;
185 ::ll::TypedStorage<
186 8,
187 32,
190 0,
194 mItemBeforeUseOnEventSignal;
195 ::ll::TypedStorage<
196 8,
197 32,
200 0,
204 mItemUseOnEventSignal;
205 ::ll::TypedStorage<
206 8,
207 32,
210 0,
214 mItemStartChargeEventSignal;
215 ::ll::TypedStorage<
216 8,
217 32,
220 0,
224 mItemCompleteChargeEventSignal;
225 ::ll::TypedStorage<
226 8,
227 32,
230 0,
234 mItemReleaseChargeEventSignal;
235 ::ll::TypedStorage<
236 8,
237 32,
240 0,
244 mItemStopChargeEventSignal;
245 // NOLINTEND
246
247public:
248 // prevent constructor by default
249 ScriptV010Events& operator=(ScriptV010Events const&);
251
252public:
253 // virtual functions
254 // NOLINTBEGIN
255 // vIndex: 0
256 virtual ~ScriptV010Events() /*override*/;
257
258 // vIndex: 1
259 virtual ::Level& getLevel() const /*override*/;
260
261 // vIndex: 3
262 virtual void
264 weatherChangedEvent) /*override*/;
265
266 // vIndex: 4
267 virtual void
269 worldInitializeEvent) /*override*/;
270
271 // vIndex: 5
272 virtual void onPlayerJoin(
274 ) /*override*/;
275
276 // vIndex: 6
277 virtual void onPlayerLeave(
279 ) /*override*/;
280
281 // vIndex: 1
282 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
283 onBeforeChat(::ChatEvent const& chatEvent, ::Player const& player) /*override*/;
284
285 // vIndex: 11
286 virtual void
288 ;
289
290 // vIndex: 12
291 virtual void
293 actorHitEntityEvent) /*override*/;
294
295 // vIndex: 13
296 virtual void onActorHitBlock(
298 ) /*override*/;
299
300 // vIndex: 15
301 virtual void onDataDrivenActorEventSend(
302 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData>&
303 dataDrivenActorEventSend
304 ) /*override*/;
305
306 // vIndex: 16
307 virtual void
309 ) /*override*/;
310
311 // vIndex: 13
312 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
313 onBeforeItemUse(::Player const& player, ::ItemUseEvent const& itemEvent) /*override*/;
314
315 // vIndex: 14
316 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
317 onBeforeItemUseOn(::Player const& player, ::ItemUseOnEvent const& itemEvent) /*override*/;
318
319 // vIndex: 40
320 virtual void
322 ) /*override*/;
323
324 // vIndex: 43
325 virtual void onItemStartUse(
327 ) /*override*/;
328
329 // vIndex: 44
330 virtual void onItemCompleteUse(
332 ) /*override*/;
333
334 // vIndex: 45
335 virtual void onItemReleaseUse(
337 ) /*override*/;
338
339 // vIndex: 46
340 virtual void
342 ) /*override*/;
343 // NOLINTEND
344
345public:
346 // member functions
347 // NOLINTBEGIN
349
350 MCAPI ScriptV010Events(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::Level*> level);
351
352 MCAPI ::ScriptModuleMinecraft::ScriptV010Events& operator=(::ScriptModuleMinecraft::ScriptV010Events&&);
353
354 MCAPI void registerListener(
357 );
358 // NOLINTEND
359
360public:
361 // static functions
362 // NOLINTBEGIN
363 MCAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
364 // NOLINTEND
365
366public:
367 // constructor thunks
368 // NOLINTBEGIN
370
371 MCAPI void* $ctor(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::Level*> level);
372 // NOLINTEND
373
374public:
375 // destructor thunk
376 // NOLINTBEGIN
377 MCAPI void $dtor();
378 // NOLINTEND
379
380public:
381 // virtual function thunks
382 // NOLINTBEGIN
383 MCAPI ::Level& $getLevel() const;
384
385 MCAPI void
387 weatherChangedEvent);
388
389 MCAPI void
391 worldInitializeEvent);
392
393 MCAPI void $onPlayerJoin(
395 );
396
397 MCAPI void $onPlayerLeave(
399 );
400
401 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
402 $onBeforeChat(::ChatEvent const& chatEvent, ::Player const& player);
403
404 MCAPI void
406
407 MCAPI void
409 actorHitEntityEvent);
410
411 MCAPI void $onActorHitBlock(
413 );
414
415 MCAPI void $onDataDrivenActorEventSend(
416 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData>&
417 dataDrivenActorEventSend
418 );
419
420 MCAPI void
422
423 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
424 $onBeforeItemUse(::Player const& player, ::ItemUseEvent const& itemEvent);
425
426 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
427 $onBeforeItemUseOn(::Player const& player, ::ItemUseOnEvent const& itemEvent);
428
429 MCAPI void
431
432 MCAPI void $onItemStartUse(
434 );
435
436 MCAPI void $onItemCompleteUse(
438 );
439
440 MCAPI void $onItemReleaseUse(
442 );
443
444 MCAPI void
446 );
447 // NOLINTEND
448
449public:
450 // vftables
451 // NOLINTBEGIN
452 MCAPI static void** $vftableForIScriptWorldAfterEvents();
453
454 MCAPI static void** $vftableForIScriptWorldBeforeEvents();
455 // NOLINTEND
456};
457
458} // namespace ScriptModuleMinecraft
Definition Level.h:234
Definition Player.h:119
Definition IScriptWorldAfterEvents.h:63
Definition IScriptWorldBeforeEvents.h:41
Definition ScriptFilteredEventSignal.h:8
Definition ScriptGlobalEventListeners.h:14
Definition ScriptV010Events.h:59
Definition Closure.h:8
Definition ModuleBindingBuilder.h:30
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ChatEvent.h:14
Definition ItemUseEvent.h:11
Definition ItemUseOnEvent.h:13
Definition EmptyFilter.h:12
Definition ScriptDataDrivenActorTriggerEventFilter.h:18
Definition ScriptActorCreateEvent.h:16
Definition ScriptActorHitAfterEvent.h:10
Definition ScriptActorHurtAfterEvent.h:10
Definition ScriptChatSendBeforeEvent.h:11
Definition ScriptDataDrivenActorTriggerAfterEvent.h:16
Definition ScriptItemCompleteUseAfterEvent.h:20
Definition ScriptItemReleaseUseAfterEvent.h:19
Definition ScriptItemStartUseAfterEvent.h:19
Definition ScriptItemStopUseAfterEvent.h:19
Definition ScriptItemUseBeforeEvent.h:11
Definition ScriptItemUseOnAfterEvent.h:22
Definition ScriptItemUseOnBeforeEvent.h:18
Definition ScriptPlayerJoinAfterEvent.h:17
Definition ScriptPlayerLeaveAfterEvent.h:10
Definition ScriptTickEvent.h:10
Definition ScriptWeatherChangedAfterEvent.h:10
Definition ScriptWorldInitializeAfterEvent.h:10
Definition TypedObjectHandle.h:8