LeviLamina
Loading...
Searching...
No Matches
ScriptWorldAfterEvents.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/lifetime_registry/WeakHandleFromThis.h"
9#include "mc/deps/scripting/lifetime_registry/WeakLifetimeScope.h"
10#include "mc/scripting/modules/minecraft/events/IScriptScriptDeferredEventListener.h"
11#include "mc/scripting/modules/minecraft/events/IScriptWorldAfterEvents.h"
12#include "mc/scripting/modules/minecraft/events/metadata/ScriptAfterEventMetadata.h"
13
14// auto generated forward declare list
15// clang-format off
16class Level;
18namespace ScriptModuleMinecraft { class ScriptActor; }
19namespace ScriptModuleMinecraft { class ScriptActorEventListener; }
20namespace ScriptModuleMinecraft { class ScriptAfterEventList; }
21namespace ScriptModuleMinecraft { class ScriptBlockEventListener; }
22namespace ScriptModuleMinecraft { class ScriptGlobalEventListeners; }
23namespace ScriptModuleMinecraft { class ScriptItemEventListener; }
24namespace ScriptModuleMinecraft { class ScriptLevelEventListener; }
25namespace ScriptModuleMinecraft { class ScriptPlayerEventListener; }
26namespace ScriptModuleMinecraft { class ScriptServerNetworkEventListener; }
27namespace ScriptModuleMinecraft { struct ScriptActorAddEffectAfterEventIntermediateData; }
28namespace ScriptModuleMinecraft { struct ScriptActorDieAfterEvent; }
29namespace ScriptModuleMinecraft { struct ScriptActorHealthChangedAfterEvent; }
30namespace ScriptModuleMinecraft { struct ScriptActorHitBlockAfterEvent; }
31namespace ScriptModuleMinecraft { struct ScriptActorHitEntityAfterEvent; }
32namespace ScriptModuleMinecraft { struct ScriptActorHurtAfterEvent; }
33namespace ScriptModuleMinecraft { struct ScriptActorLoadAfterEvent; }
34namespace ScriptModuleMinecraft { struct ScriptActorRemoveAfterEvent; }
35namespace ScriptModuleMinecraft { struct ScriptActorSpawnAfterEvent; }
36namespace ScriptModuleMinecraft { struct ScriptBlockExplodedAfterEventIntermediateData; }
37namespace ScriptModuleMinecraft { struct ScriptButtonPushAfterEvent; }
38namespace ScriptModuleMinecraft { struct ScriptChatSendAfterEvent; }
39namespace ScriptModuleMinecraft { struct ScriptDataDrivenActorTriggerAfterEventIntermediateData; }
40namespace ScriptModuleMinecraft { struct ScriptExplosionStartedAfterEvent; }
41namespace ScriptModuleMinecraft { struct ScriptGameRuleChangeAfterEvent; }
42namespace ScriptModuleMinecraft { struct ScriptItemCompleteUseAfterEvent; }
43namespace ScriptModuleMinecraft { struct ScriptItemReleaseUseAfterEvent; }
44namespace ScriptModuleMinecraft { struct ScriptItemStartUseAfterEvent; }
45namespace ScriptModuleMinecraft { struct ScriptItemStartUseOnAfterEvent; }
46namespace ScriptModuleMinecraft { struct ScriptItemStopUseAfterEvent; }
47namespace ScriptModuleMinecraft { struct ScriptItemStopUseOnAfterEvent; }
48namespace ScriptModuleMinecraft { struct ScriptItemUseAfterEvent; }
49namespace ScriptModuleMinecraft { struct ScriptItemUseOnAfterEvent; }
50namespace ScriptModuleMinecraft { struct ScriptLeverActionAfterEvent; }
51namespace ScriptModuleMinecraft { struct ScriptPackSettingChangeAfterEvent; }
52namespace ScriptModuleMinecraft { struct ScriptPistonActionAfterEvent; }
53namespace ScriptModuleMinecraft { struct ScriptPlayerBreakBlockAfterEvent; }
54namespace ScriptModuleMinecraft { struct ScriptPlayerButtonInputAfterEvent; }
55namespace ScriptModuleMinecraft { struct ScriptPlayerDimensionChangeAfterEvent; }
56namespace ScriptModuleMinecraft { struct ScriptPlayerEmoteAfterEvent; }
57namespace ScriptModuleMinecraft { struct ScriptPlayerGameModeChangeAfterEvent; }
58namespace ScriptModuleMinecraft { struct ScriptPlayerHotbarSelectedSlotChangeAfterEvent; }
59namespace ScriptModuleMinecraft { struct ScriptPlayerInputModeChangeAfterEvent; }
60namespace ScriptModuleMinecraft { struct ScriptPlayerInputPermissionCategoryChangeAfterEvent; }
61namespace ScriptModuleMinecraft { struct ScriptPlayerInteractWithBlockAfterEvent; }
62namespace ScriptModuleMinecraft { struct ScriptPlayerInteractWithEntityAfterEvent; }
63namespace ScriptModuleMinecraft { struct ScriptPlayerInventoryItemChangeAfterEvent; }
64namespace ScriptModuleMinecraft { struct ScriptPlayerJoinAfterEvent; }
65namespace ScriptModuleMinecraft { struct ScriptPlayerLeaveAfterEvent; }
66namespace ScriptModuleMinecraft { struct ScriptPlayerPlaceBlockAfterEvent; }
67namespace ScriptModuleMinecraft { struct ScriptPlayerSpawnAfterEvent; }
68namespace ScriptModuleMinecraft { struct ScriptPlayerSwingStartAfterEvent; }
69namespace ScriptModuleMinecraft { struct ScriptPressurePlatePopAfterEvent; }
70namespace ScriptModuleMinecraft { struct ScriptPressurePlatePushAfterEvent; }
71namespace ScriptModuleMinecraft { struct ScriptProjectileHitBlockAfterEvent; }
72namespace ScriptModuleMinecraft { struct ScriptProjectileHitEntityAfterEvent; }
73namespace ScriptModuleMinecraft { struct ScriptServerMessageAfterEvent; }
74namespace ScriptModuleMinecraft { struct ScriptTargetBlockHitAfterEvent; }
75namespace ScriptModuleMinecraft { struct ScriptTripWireTripAfterEvent; }
76namespace ScriptModuleMinecraft { struct ScriptWeatherChangedAfterEvent; }
77namespace ScriptModuleMinecraft { struct ScriptWorldInitializeAfterEvent; }
78namespace Scripting { class DependencyLocator; }
79namespace Scripting { class ModuleBindingBuilder; }
80namespace Scripting { struct ContextConfig; }
81// clang-format on
82
83namespace ScriptModuleMinecraft {
84
87 public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::IScriptWorldAfterEvents> {
88public:
89 // ScriptWorldAfterEvents inner types declare
90 // clang-format off
93 // clang-format on
94
95 // ScriptWorldAfterEvents inner types define
97 public:
98 // member variables
99 // NOLINTBEGIN
100 ::ll::TypedStorage<8, 32, ::std::string> name;
101 ::ll::TypedStorage<8, 8, uint64> count;
102 // NOLINTEND
103
104 public:
105 // member functions
106 // NOLINTBEGIN
108 // NOLINTEND
109
110 public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCFOLD void $dtor();
114 // NOLINTEND
115 };
116
119 ::ScriptModuleMinecraft::ScriptWorldAfterEvents> {
120 public:
121 // virtual functions
122 // NOLINTBEGIN
123 // vIndex: 2
124 virtual void onFlushWorldAfterEvents(::ScriptDeferredFlushTracker& deferredTracker) /*override*/;
125
126 // vIndex: 0
127 virtual ~ScriptWorldAfterEventsDeferredEventListener() /*override*/ = default;
128 // NOLINTEND
129
130 public:
131 // virtual function thunks
132 // NOLINTBEGIN
133 MCAPI void $onFlushWorldAfterEvents(::ScriptDeferredFlushTracker& deferredTracker);
134 // NOLINTEND
135
136 public:
137 // vftables
138 // NOLINTBEGIN
139 MCNAPI static void** $vftable();
140 // NOLINTEND
141 };
142
143public:
144 // member variables
145 // NOLINTBEGIN
146 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
147 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Level*>> mLevel;
148 ::ll::TypedStorage<8, 8, ::ScriptModuleMinecraft::ScriptGlobalEventListeners*> mGlobalEventListeners;
149 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptActorEventListener>> mActorEventListener;
150 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptBlockEventListener>> mBlockEventListener;
151 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptItemEventListener>> mItemEventListener;
152 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptLevelEventListener>> mLevelEventListener;
153 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptPlayerEventListener>>
154 mPlayerEventListener;
155 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptServerNetworkEventListener>>
156 mServerNetworkEventListener;
157 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnActorEntityAdded;
158 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnPackSettingChange;
159 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptAfterEventList>> mEvents;
160 ::ll::TypedStorage<
161 8,
162 8,
163 ::std::unique_ptr<::ScriptModuleMinecraft::ScriptWorldAfterEvents::ScriptWorldAfterEventsDeferredEventListener>>
164 mScriptDeferredEventListener;
165 // NOLINTEND
166
167public:
168 // prevent constructor by default
170
171public:
172 // virtual functions
173 // NOLINTBEGIN
174 // vIndex: 0
175 virtual ~ScriptWorldAfterEvents() /*override*/;
176
177 // vIndex: 1
178 virtual ::Level& getLevel() const /*override*/;
179
180 // vIndex: 2
181 virtual void onGameRuleChange(
182 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptGameRuleChangeAfterEvent>&
183 gameRulesChangeEvent
184 ) /*override*/;
185
186 // vIndex: 3
187 virtual void onWeatherChanged(
188 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWeatherChangedAfterEvent>&
189 weatherChangedEvent
190 ) /*override*/;
191
192 // vIndex: 34
193 virtual void onPushButton(
194 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptButtonPushAfterEvent>& pushedButton
195 ) /*override*/;
196
197 // vIndex: 9
198 virtual void onActorLoad(
199 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorLoadAfterEvent>& eventData
200 ) /*override*/;
201
202 // vIndex: 10
203 virtual void onActorSpawn(
204 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorSpawnAfterEvent>& eventData
205 ) /*override*/;
206
207 // vIndex: 15
208 virtual void onDataDrivenActorEventSend(
209 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData>& eventData
210 ) /*override*/;
211
212 // vIndex: 12
213 virtual void onActorHitEntity(
214 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHitEntityAfterEvent>& eventData
215 ) /*override*/;
216
217 // vIndex: 13
218 virtual void onActorHitBlock(
219 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHitBlockAfterEvent>& eventData
220 ) /*override*/;
221
222 // vIndex: 7
223 virtual void onActorAddEffect(
224 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptActorAddEffectAfterEventIntermediateData>& eventData
225 ) /*override*/;
226
227 // vIndex: 33
228 virtual void onActivateLever(
229 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptLeverActionAfterEvent>& leverEvent
230 ) /*override*/;
231
232 // vIndex: 37
233 virtual void onPlayerPlaceBlock(
234 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerPlaceBlockAfterEvent>& blockPlaceEvent
235 ) /*override*/;
236
237 // vIndex: 36
238 virtual void onExplodeBlock(
239 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptBlockExplodedAfterEventIntermediateData>& eventData
240 ) /*override*/;
241
242 // vIndex: 38
243 virtual void onPlayerBreakBlock(
244 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerBreakBlockAfterEvent>& blockBreakEvent
245 ) /*override*/;
246
247 // vIndex: 16
248 virtual void onActorHurt(
249 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtAfterEvent>& actorHurtEvent
250 ) /*override*/;
251
252 // vIndex: 17
253 virtual void onActorHealthChanged(
254 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealthChangedAfterEvent>&
255 actorHealthChangedEvent
256 ) /*override*/;
257
258 // vIndex: 18
259 virtual void onActorDie(
260 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorDieAfterEvent>& actorDieEvent
261 ) /*override*/;
262
263 // vIndex: 11
264 virtual void onActorRemoved(
265 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor> const& removedActor,
266 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorRemoveAfterEvent>& eventData
267 ) /*override*/;
268
269 // vIndex: 43
270 virtual void onItemUse(
271 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseAfterEvent>& eventData
272 ) /*override*/;
273
274 // vIndex: 44
275 virtual void onItemUseOn(
276 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnAfterEvent>& eventData
277 ) /*override*/;
278
279 // vIndex: 45
280 virtual void onItemStartUseOn(
281 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStartUseOnAfterEvent>& eventData
282 ) /*override*/;
283
284 // vIndex: 46
285 virtual void onItemStopUseOn(
286 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStopUseOnAfterEvent>& eventData
287 ) /*override*/;
288
289 // vIndex: 47
290 virtual void onItemStartUse(
291 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStartUseAfterEvent>& eventData
292 ) /*override*/;
293
294 // vIndex: 48
295 virtual void onItemCompleteUse(
296 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemCompleteUseAfterEvent>& eventData
297 ) /*override*/;
298
299 // vIndex: 49
300 virtual void onItemReleaseUse(
301 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemReleaseUseAfterEvent>& eventData
302 ) /*override*/;
303
304 // vIndex: 50
305 virtual void onItemStopUse(
306 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStopUseAfterEvent>& eventData
307 ) /*override*/;
308
309 // vIndex: 5
310 virtual void onPlayerJoin(
311 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerJoinAfterEvent>& eventData
312 ) /*override*/;
313
314 // vIndex: 6
315 virtual void onPlayerLeave(
316 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerLeaveAfterEvent>& eventData
317 ) /*override*/;
318
319 // vIndex: 20
320 virtual void onPlayerSpawn(
321 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerSpawnAfterEvent>& eventData
322 ) /*override*/;
323
324 // vIndex: 21
325 virtual void onPlayerDimensionChange(
326 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerDimensionChangeAfterEvent>& eventData
327 ) /*override*/;
328
329 // vIndex: 22
330 virtual void onPlayerInputModeChange(
331 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInputModeChangeAfterEvent>& eventData
332 ) /*override*/;
333
334 // vIndex: 23
335 virtual void onPlayerInputPermissionCategoryChange(
336 ::Scripting::StrongTypedObjectHandle<
337 ::ScriptModuleMinecraft::ScriptPlayerInputPermissionCategoryChangeAfterEvent>& eventData
338 ) /*override*/;
339
340 // vIndex: 24
341 virtual void onPlayerInteractWithEntity(
342 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithEntityAfterEvent>&
343 eventData
344 ) /*override*/;
345
346 // vIndex: 25
347 virtual void onPlayerInteractWithBlock(
348 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithBlockAfterEvent>&
349 eventData
350 ) /*override*/;
351
352 // vIndex: 26
353 virtual void onPlayerGameModeChange(
354 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerGameModeChangeAfterEvent>& eventData
355 ) /*override*/;
356
357 // vIndex: 4
358 virtual void onWorldInitialize(
359 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldInitializeAfterEvent>& eventData
360 ) /*override*/;
361
362 // vIndex: 8
363 virtual void onChat(
364 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendAfterEvent>& eventData
365 ) /*override*/;
366
367 // vIndex: 14
368 virtual void onServerMessage(
369 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptServerMessageAfterEvent>& eventData
370 ) /*override*/;
371
372 // vIndex: 51
373 virtual void onProjectileHitEntity(
374 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptProjectileHitEntityAfterEvent>& eventData
375 ) /*override*/;
376
377 // vIndex: 52
378 virtual void onProjectileHitBlock(
379 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptProjectileHitBlockAfterEvent>& eventData
380 ) /*override*/;
381
382 // vIndex: 32
383 virtual void onActivatePiston(
384 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPistonActionAfterEvent>& eventData
385 ) /*override*/;
386
387 // vIndex: 35
388 virtual void onExplosion(
389 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptExplosionStartedAfterEvent>& eventData
390 ) /*override*/;
391
392 // vIndex: 39
393 virtual void onPushPressurePlate(
394 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPressurePlatePushAfterEvent>&
395 pushedPressurePlate
396 ) /*override*/;
397
398 // vIndex: 40
399 virtual void onPopPressurePlate(
400 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPressurePlatePopAfterEvent>&
401 poppedPressurePlate
402 ) /*override*/;
403
404 // vIndex: 41
405 virtual void onHitTargetBlock(
406 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptTargetBlockHitAfterEvent>& hitTargetBlock
407 ) /*override*/;
408
409 // vIndex: 42
410 virtual void onTripTripWire(
411 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptTripWireTripAfterEvent>& trippedTripWire
412 ) /*override*/;
413
414 // vIndex: 27
415 virtual void onPlayerEmote(
416 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerEmoteAfterEvent>& emoteEvent
417 ) /*override*/;
418
419 // vIndex: 28
420 virtual void onPlayerButtonInput(
421 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerButtonInputAfterEvent>& inputEvent
422 ) /*override*/;
423
424 // vIndex: 29
425 virtual void onPlayerInventoryItemChange(
426 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInventoryItemChangeAfterEvent>&
427 inventoryEvent
428 ) /*override*/;
429
430 // vIndex: 30
431 virtual void onPlayerHotbarSelectedSlotChange(
432 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerHotbarSelectedSlotChangeAfterEvent>&
433 hotbarEvent
434 ) /*override*/;
435
436 // vIndex: 19
437 virtual void onPackSettingChange(
438 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPackSettingChangeAfterEvent>&
439 packSettingChangeEvent
440 ) /*override*/;
441
442 // vIndex: 31
443 virtual void onPlayerSwingStart(
444 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerSwingStartAfterEvent>&
445 playerSwingStartEvent
446 ) /*override*/;
447 // NOLINTEND
448
449public:
450 // member functions
451 // NOLINTBEGIN
453 ::Scripting::WeakLifetimeScope const& scope,
454 ::gsl::not_null<::Level*> level,
455 ::Scripting::DependencyLocator& locator,
456 ::Scripting::ContextConfig const& config
457 );
458
459 MCAPI ::std::vector<::ScriptModuleMinecraft::ScriptWorldAfterEvents::SignalNameSubscriberCount>
460 getFineGrainedSignalSubscriberStats() const;
461
462 MCAPI void
463 registerListeners(bool worldListener, ::ScriptModuleMinecraft::ScriptGlobalEventListeners& globalEventListeners);
464 // NOLINTEND
465
466public:
467 // static functions
468 // NOLINTBEGIN
469 MCAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
470
471 MCAPI static ::ScriptModuleMinecraft::ScriptAfterEventMetadata<
472 ::ScriptModuleMinecraft::ScriptWorldAfterEvents> const&
473 getMetadata();
474 // NOLINTEND
475
476public:
477 // static variables
478 // NOLINTBEGIN
479 MCAPI static char const*& bindingName();
480 // NOLINTEND
481
482public:
483 // constructor thunks
484 // NOLINTBEGIN
485 MCAPI void* $ctor(
486 ::Scripting::WeakLifetimeScope const& scope,
487 ::gsl::not_null<::Level*> level,
488 ::Scripting::DependencyLocator& locator,
489 ::Scripting::ContextConfig const& config
490 );
491 // NOLINTEND
492
493public:
494 // destructor thunk
495 // NOLINTBEGIN
496 MCAPI void $dtor();
497 // NOLINTEND
498
499public:
500 // virtual function thunks
501 // NOLINTBEGIN
502 MCFOLD ::Level& $getLevel() const;
503
504 MCAPI void $onGameRuleChange(
505 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptGameRuleChangeAfterEvent>&
506 gameRulesChangeEvent
507 );
508
509 MCAPI void $onWeatherChanged(
510 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWeatherChangedAfterEvent>&
511 weatherChangedEvent
512 );
513
514 MCAPI void $onPushButton(
515 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptButtonPushAfterEvent>& pushedButton
516 );
517
518 MCAPI void
519 $onActorLoad(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorLoadAfterEvent>& eventData);
520
521 MCAPI void
522 $onActorSpawn(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorSpawnAfterEvent>& eventData);
523
524 MCAPI void $onDataDrivenActorEventSend(
525 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptDataDrivenActorTriggerAfterEventIntermediateData>& eventData
526 );
527
528 MCAPI void $onActorHitEntity(
529 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHitEntityAfterEvent>& eventData
530 );
531
532 MCAPI void $onActorHitBlock(
533 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHitBlockAfterEvent>& eventData
534 );
535
536 MCAPI void $onActorAddEffect(
537 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptActorAddEffectAfterEventIntermediateData>& eventData
538 );
539
540 MCAPI void $onActivateLever(
541 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptLeverActionAfterEvent>& leverEvent
542 );
543
544 MCAPI void $onPlayerPlaceBlock(
545 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerPlaceBlockAfterEvent>& blockPlaceEvent
546 );
547
548 MCAPI void $onExplodeBlock(
549 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptBlockExplodedAfterEventIntermediateData>& eventData
550 );
551
552 MCAPI void $onPlayerBreakBlock(
553 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerBreakBlockAfterEvent>& blockBreakEvent
554 );
555
556 MCAPI void $onActorHurt(
557 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtAfterEvent>& actorHurtEvent
558 );
559
560 MCAPI void $onActorHealthChanged(
561 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealthChangedAfterEvent>&
562 actorHealthChangedEvent
563 );
564
565 MCAPI void
566 $onActorDie(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorDieAfterEvent>& actorDieEvent);
567
568 MCAPI void $onActorRemoved(
569 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor> const& removedActor,
570 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorRemoveAfterEvent>& eventData
571 );
572
573 MCAPI void
574 $onItemUse(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseAfterEvent>& eventData);
575
576 MCAPI void
577 $onItemUseOn(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnAfterEvent>& eventData);
578
579 MCAPI void $onItemStartUseOn(
580 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStartUseOnAfterEvent>& eventData
581 );
582
583 MCAPI void $onItemStopUseOn(
584 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStopUseOnAfterEvent>& eventData
585 );
586
587 MCAPI void $onItemStartUse(
588 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStartUseAfterEvent>& eventData
589 );
590
591 MCAPI void $onItemCompleteUse(
592 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemCompleteUseAfterEvent>& eventData
593 );
594
595 MCAPI void $onItemReleaseUse(
596 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemReleaseUseAfterEvent>& eventData
597 );
598
599 MCAPI void $onItemStopUse(
600 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStopUseAfterEvent>& eventData
601 );
602
603 MCAPI void
604 $onPlayerJoin(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerJoinAfterEvent>& eventData);
605
606 MCAPI void $onPlayerLeave(
607 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerLeaveAfterEvent>& eventData
608 );
609
610 MCAPI void $onPlayerSpawn(
611 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerSpawnAfterEvent>& eventData
612 );
613
614 MCAPI void $onPlayerDimensionChange(
615 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerDimensionChangeAfterEvent>& eventData
616 );
617
618 MCAPI void $onPlayerInputModeChange(
619 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInputModeChangeAfterEvent>& eventData
620 );
621
622 MCAPI void $onPlayerInputPermissionCategoryChange(
623 ::Scripting::StrongTypedObjectHandle<
624 ::ScriptModuleMinecraft::ScriptPlayerInputPermissionCategoryChangeAfterEvent>& eventData
625 );
626
627 MCAPI void $onPlayerInteractWithEntity(
628 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithEntityAfterEvent>&
629 eventData
630 );
631
632 MCAPI void $onPlayerInteractWithBlock(
633 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithBlockAfterEvent>&
634 eventData
635 );
636
637 MCAPI void $onPlayerGameModeChange(
638 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerGameModeChangeAfterEvent>& eventData
639 );
640
641 MCAPI void $onWorldInitialize(
642 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldInitializeAfterEvent>& eventData
643 );
644
645 MCAPI void
646 $onChat(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendAfterEvent>& eventData);
647
648 MCAPI void $onServerMessage(
649 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptServerMessageAfterEvent>& eventData
650 );
651
652 MCAPI void $onProjectileHitEntity(
653 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptProjectileHitEntityAfterEvent>& eventData
654 );
655
656 MCAPI void $onProjectileHitBlock(
657 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptProjectileHitBlockAfterEvent>& eventData
658 );
659
660 MCAPI void $onActivatePiston(
661 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPistonActionAfterEvent>& eventData
662 );
663
664 MCAPI void $onExplosion(
665 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptExplosionStartedAfterEvent>& eventData
666 );
667
668 MCAPI void $onPushPressurePlate(
669 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPressurePlatePushAfterEvent>&
670 pushedPressurePlate
671 );
672
673 MCAPI void $onPopPressurePlate(
674 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPressurePlatePopAfterEvent>&
675 poppedPressurePlate
676 );
677
678 MCAPI void $onHitTargetBlock(
679 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptTargetBlockHitAfterEvent>& hitTargetBlock
680 );
681
682 MCAPI void $onTripTripWire(
683 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptTripWireTripAfterEvent>& trippedTripWire
684 );
685
686 MCAPI void $onPlayerEmote(
687 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerEmoteAfterEvent>& emoteEvent
688 );
689
690 MCAPI void $onPlayerButtonInput(
691 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerButtonInputAfterEvent>& inputEvent
692 );
693
694 MCAPI void $onPlayerInventoryItemChange(
695 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInventoryItemChangeAfterEvent>&
696 inventoryEvent
697 );
698
699 MCAPI void $onPlayerHotbarSelectedSlotChange(
700 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerHotbarSelectedSlotChangeAfterEvent>&
701 hotbarEvent
702 );
703
704 MCAPI void $onPackSettingChange(
705 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPackSettingChangeAfterEvent>&
706 packSettingChangeEvent
707 );
708
709 MCAPI void $onPlayerSwingStart(
710 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerSwingStartAfterEvent>&
711 playerSwingStartEvent
712 );
713 // NOLINTEND
714
715public:
716 // vftables
717 // NOLINTBEGIN
718 MCNAPI static void** $vftable();
719 // NOLINTEND
720};
721
722} // namespace ScriptModuleMinecraft
Definition Level.h:243
Definition ScriptDeferredFlushTracker.h:13
Definition IScriptScriptDeferredEventListener.h:8
Definition IScriptWorldAfterEvents.h:67
Definition ScriptActor.h:66
Definition ScriptGlobalEventListeners.h:17
Definition ScriptWorldAfterEvents.h:87
Definition WeakHandleFromThis.h:8
STL namespace.
Definition ScriptActorAddEffectAfterEventIntermediateData.h:17
Definition ScriptActorDieAfterEvent.h:17
Definition ScriptActorHealthChangedAfterEvent.h:16
Definition ScriptActorHitBlockAfterEvent.h:19
Definition ScriptActorHitEntityAfterEvent.h:16
Definition ScriptActorHurtAfterEvent.h:18
Definition ScriptActorLoadAfterEvent.h:16
Definition ScriptActorRemoveAfterEvent.h:12
Definition ScriptActorSpawnAfterEvent.h:17
Definition ScriptAfterEventMetadata.h:8
Definition ScriptBlockExplodedAfterEventIntermediateData.h:18
Definition ScriptButtonPushAfterEvent.h:17
Definition ScriptChatSendAfterEvent.h:21
Definition ScriptDataDrivenActorTriggerAfterEventIntermediateData.h:15
Definition ScriptExplosionStartedAfterEvent.h:21
Definition ScriptGameRuleChangeAfterEvent.h:16
Definition ScriptItemCompleteUseAfterEvent.h:20
Definition ScriptItemReleaseUseAfterEvent.h:20
Definition ScriptItemStartUseAfterEvent.h:20
Definition ScriptItemStartUseOnAfterEvent.h:22
Definition ScriptItemStopUseAfterEvent.h:20
Definition ScriptItemStopUseOnAfterEvent.h:21
Definition ScriptItemUseAfterEvent.h:20
Definition ScriptItemUseOnAfterEvent.h:24
Definition ScriptLeverActionAfterEvent.h:20
Definition ScriptPackSettingChangeAfterEvent.h:12
Definition ScriptPistonActionAfterEvent.h:20
Definition ScriptPlayerBreakBlockAfterEvent.h:24
Definition ScriptPlayerButtonInputAfterEvent.h:18
Definition ScriptPlayerDimensionChangeAfterEvent.h:18
Definition ScriptPlayerEmoteAfterEvent.h:18
Definition ScriptPlayerGameModeChangeAfterEvent.h:19
Definition ScriptPlayerHotbarSelectedSlotChangeAfterEvent.h:19
Definition ScriptPlayerInputModeChangeAfterEvent.h:17
Definition ScriptPlayerInputPermissionCategoryChangeAfterEvent.h:17
Definition ScriptPlayerInteractWithBlockAfterEvent.h:21
Definition ScriptPlayerInteractWithEntityAfterEvent.h:19
Definition ScriptPlayerInventoryItemChangeAfterEvent.h:20
Definition ScriptPlayerJoinAfterEvent.h:16
Definition ScriptPlayerLeaveAfterEvent.h:12
Definition ScriptPlayerPlaceBlockAfterEvent.h:20
Definition ScriptPlayerSpawnAfterEvent.h:16
Definition ScriptPlayerSwingStartAfterEvent.h:19
Definition ScriptPressurePlatePopAfterEvent.h:15
Definition ScriptPressurePlatePushAfterEvent.h:17
Definition ScriptProjectileHitBlockAfterEvent.h:16
Definition ScriptProjectileHitEntityAfterEvent.h:16
Definition ScriptServerMessageAfterEvent.h:16
Definition ScriptTargetBlockHitAfterEvent.h:18
Definition ScriptTripWireTripAfterEvent.h:19
Definition ScriptWeatherChangedAfterEvent.h:12
Definition ScriptWorldInitializeAfterEvent.h:16