LeviLamina
Loading...
Searching...
No Matches
ScriptActorEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorInitializationMethod.h"
7#include "mc/world/events/EventListenerDispatcher.h"
8#include "mc/world/events/EventResult.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
14struct ActorAttackEvent;
15struct ActorDiedEvent;
17struct ActorHurtEvent;
21// clang-format on
22
23namespace ScriptModuleMinecraft {
24
25class ScriptActorEventListener : public ::EventListenerDispatcher<::ActorEventListener> {
26public:
27 // member variables
28 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 28
44 virtual ::EventResult onEvent(::ActorRemovedEvent const& actorRemovedEvent) /*override*/;
45
46 // vIndex: 27
47 virtual ::EventResult onEvent(::ActorRemoveEffectEvent const& actorRemoveEffectEvent) /*override*/;
48
49 // vIndex: 39
50 virtual ::EventResult onEvent(::ActorAttackEvent const& actorAttackEvent) /*override*/;
51
52 // vIndex: 32
53 virtual ::EventResult onEvent(::ActorHurtEvent const& actorHurtEvent) /*override*/;
54
55 // vIndex: 31
56 virtual ::EventResult onEvent(::ActorHealthChangedEvent const& actorHealthChangedEvent) /*override*/;
57
58 // vIndex: 35
59 virtual ::EventResult onEvent(::ActorDiedEvent const& actorDiedEvent) /*override*/;
60
61 // vIndex: 22
62 virtual ::EventResult onEvent(::ProjectileHitEvent const& projectileHitEvent) /*override*/;
63
64 // vIndex: 7
65 virtual ::EventResult onActorCreated(::Actor& actor, ::ActorInitializationMethod initializationMethod) /*override*/;
66
67 // vIndex: 0
68 virtual ~ScriptActorEventListener() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCAPI ::EventResult $onEvent(::ActorRemovedEvent const& actorRemovedEvent);
81
82 MCFOLD ::EventResult $onEvent(::ActorRemoveEffectEvent const& actorRemoveEffectEvent);
83
84 MCAPI ::EventResult $onEvent(::ActorAttackEvent const& actorAttackEvent);
85
86 MCAPI ::EventResult $onEvent(::ActorHurtEvent const& actorHurtEvent);
87
88 MCAPI ::EventResult $onEvent(::ActorHealthChangedEvent const& actorHealthChangedEvent);
89
90 MCAPI ::EventResult $onEvent(::ActorDiedEvent const& actorDiedEvent);
91
92 MCAPI ::EventResult $onEvent(::ProjectileHitEvent const& projectileHitEvent);
93
94 MCAPI ::EventResult $onActorCreated(::Actor& actor, ::ActorInitializationMethod initializationMethod);
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
103
104} // namespace ScriptModuleMinecraft
Definition ActorEventListener.h:20
Definition Actor.h:104
Definition EventListenerDispatcher.h:6
Definition ScriptActorEventListener.h:25
Definition ActorAttackEvent.h:10
Definition ActorDiedEvent.h:14
Definition ActorHealthChangedEvent.h:10
Definition ActorHurtEvent.h:11
Definition ActorRemoveEffectEvent.h:11
Definition ActorRemovedEvent.h:10
Definition ProjectileHitEvent.h:11
Definition Alias.h:14