LeviLamina
Loading...
Searching...
No Matches
ScriptWorldBeforeEvents.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/ScriptWeatherType.h"
9#include "mc/scripting/modules/minecraft/events/IScriptWorldBeforeEvents.h"
10#include "mc/world/level/GameType.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class Level;
16class Player;
20struct ChatEvent;
22struct ItemUseEvent;
23struct ItemUseOnEvent;
26namespace ScriptModuleMinecraft { class ScriptBlockComponentRegistry; }
27namespace ScriptModuleMinecraft { class ScriptItemComponentRegistry; }
28namespace ScriptModuleMinecraft { struct ScriptActorAddEffectBeforeEvent; }
29namespace ScriptModuleMinecraft { struct ScriptChatSendBeforeEvent; }
30namespace ScriptModuleMinecraft { struct ScriptExplosionStartedBeforeEvent; }
31namespace ScriptModuleMinecraft { struct ScriptItemUseBeforeEvent; }
32namespace ScriptModuleMinecraft { struct ScriptItemUseOnBeforeEvent; }
33namespace ScriptModuleMinecraft { struct ScriptPlayerBreakBlockBeforeEvent; }
34namespace ScriptModuleMinecraft { struct ScriptPlayerGameModeChangeBeforeEvent; }
35namespace ScriptModuleMinecraft { struct ScriptPlayerInteractWithBlockBeforeEvent; }
36namespace ScriptModuleMinecraft { struct ScriptPlayerInteractWithEntityBeforeEvent; }
37namespace ScriptModuleMinecraft { struct ScriptPlayerPlaceBlockBeforeEvent; }
38namespace ScriptModuleMinecraft { struct ScriptWeatherChangedBeforeEvent; }
39namespace ScriptModuleMinecraft { struct SignalNameSubscriberCount; }
40namespace Scripting { class ModuleBindingBuilder; }
41namespace Scripting { class WeakLifetimeScope; }
42// clang-format on
43
44namespace ScriptModuleMinecraft {
45
48 public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
49public:
50 // member variables
51 // NOLINTBEGIN
69 // NOLINTEND
70
71public:
72 // prevent constructor by default
76
77public:
78 // virtual functions
79 // NOLINTBEGIN
80 // vIndex: 0
81 virtual ~ScriptWorldBeforeEvents() /*override*/;
82
83 // vIndex: 8
84 virtual void onBeforeActorRemove(::Actor const& actor) /*override*/;
85
86 // vIndex: 1
87 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
88 onBeforeChat(::ChatEvent const& chatEvent, ::Player const& player) /*override*/;
89
90 // vIndex: 10
91 virtual ::std::optional<
93 onBeforeExplosion(::ExplosionStartedEvent const& event) /*override*/;
94
95 // vIndex: 13
96 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
97 onBeforeItemUse(::Player const& player, ::ItemUseEvent const& itemEvent) /*override*/;
98
99 // vIndex: 14
100 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
101 onBeforeItemUseOn(::Player const& player, ::ItemUseOnEvent const& itemEvent) /*override*/;
102
103 // vIndex: 11
104 virtual ::std::optional<
106 onBeforePlayerBreakBlock(::Player const& player, ::BlockTryDestroyByPlayerEvent const& eventData) /*override*/;
107
108 // vIndex: 12
109 virtual ::std::optional<
111 onBeforePlayerPlaceBlock(::Player const& player, ::BlockTryPlaceByPlayerEvent const& eventData) /*override*/;
112
113 // vIndex: 5
114 virtual ::std::optional<
116 onBeforePlayerInteractWithBlock(
117 ::Player& player,
119 ) /*override*/;
120
121 // vIndex: 4
122 virtual ::std::optional<
124 onBeforePlayerInteractWithEntity(
125 ::Player& player,
126 ::Actor& target,
128 ) /*override*/;
129
130 // vIndex: 6
131 virtual ::std::optional<
133 onBeforePlayerGameModeChange(::Player const&, ::GameType, ::GameType) /*override*/;
134
135 // vIndex: 2
136 virtual void onBeforeWorldInitialize(
138 blockComponentRegistry,
140 itemComponentRegistry
141 ) /*override*/;
142
143 // vIndex: 7
144 virtual void onBeforePlayerLeave(::Player const& player) /*override*/;
145
146 // vIndex: 9
147 virtual ::std::optional<
149 onBeforeEffectAddedEventSend(::ActorAddEffectEvent& actorEffectAddedEvent, ::Actor const& actor) /*override*/;
150
151 // vIndex: 3
152 virtual ::std::optional<
154 onBeforeWeatherChangedEvent(
155 ::ScriptModuleMinecraft::ScriptWeatherType,
156 ::ScriptModuleMinecraft::ScriptWeatherType,
157 int
158 ) /*override*/;
159 // NOLINTEND
160
161public:
162 // member functions
163 // NOLINTBEGIN
165
167
168 MCNAPI ::std::vector<::ScriptModuleMinecraft::SignalNameSubscriberCount>
170
171 MCNAPI ::ScriptModuleMinecraft::ScriptWorldBeforeEvents&
173
174 MCNAPI void registerListeners();
175 // NOLINTEND
176
177public:
178 // static functions
179 // NOLINTBEGIN
180 MCNAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
181 // NOLINTEND
182
183public:
184 // constructor thunks
185 // NOLINTBEGIN
187
188 MCNAPI void* $ctor(::Scripting::WeakLifetimeScope scope, ::Level* level);
189 // NOLINTEND
190
191public:
192 // destructor thunk
193 // NOLINTBEGIN
194 MCNAPI void $dtor();
195 // NOLINTEND
196
197public:
198 // virtual function thunks
199 // NOLINTBEGIN
200 MCNAPI void $onBeforeActorRemove(::Actor const& actor);
201
202 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
203 $onBeforeChat(::ChatEvent const& chatEvent, ::Player const& player);
204
205 MCNAPI ::std::optional<
208
209 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
210 $onBeforeItemUse(::Player const& player, ::ItemUseEvent const& itemEvent);
211
212 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
213 $onBeforeItemUseOn(::Player const& player, ::ItemUseOnEvent const& itemEvent);
214
215 MCNAPI ::std::optional<
218
219 MCNAPI ::std::optional<
222
223 MCNAPI ::std::optional<
226
227 MCNAPI ::std::optional<
230 ::Player& player,
231 ::Actor& target,
233 );
234
237 blockComponentRegistry,
239 itemComponentRegistry
240 );
241
242 MCNAPI void $onBeforePlayerLeave(::Player const& player);
243
244 MCNAPI ::std::optional<
246 $onBeforeEffectAddedEventSend(::ActorAddEffectEvent& actorEffectAddedEvent, ::Actor const& actor);
247 // NOLINTEND
248
249public:
250 // vftables
251 // NOLINTBEGIN
252 MCNAPI static void** $vftable();
253 // NOLINTEND
254};
255
256} // namespace ScriptModuleMinecraft
Definition Actor.h:103
Definition Level.h:238
Definition Player.h:119
Definition IScriptWorldBeforeEvents.h:40
Definition ScriptWorldBeforeEvents.h:48
MCAPI void $onBeforeActorRemove(::Actor const &actor)
MCAPI ::std::vector<::ScriptModuleMinecraft::SignalNameSubscriberCount > getFineGrainedSignalSubscriberStats() const
MCAPI void * $ctor(::ScriptModuleMinecraft::ScriptWorldBeforeEvents &&)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerPlaceBlockBeforeEvent > > $onBeforePlayerPlaceBlock(::Player const &player, ::BlockTryPlaceByPlayerEvent const &eventData)
MCAPI::ScriptModuleMinecraft::ScriptWorldBeforeEvents & operator=(::ScriptModuleMinecraft::ScriptWorldBeforeEvents &&)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerBreakBlockBeforeEvent > > $onBeforePlayerBreakBlock(::Player const &player, ::BlockTryDestroyByPlayerEvent const &eventData)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent > > $onBeforeItemUse(::Player const &player, ::ItemUseEvent const &itemEvent)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorAddEffectBeforeEvent > > $onBeforeEffectAddedEventSend(::ActorAddEffectEvent &actorEffectAddedEvent, ::Actor const &actor)
MCAPI void $onBeforeWorldInitialize(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockComponentRegistry > const &blockComponentRegistry, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponentRegistry > const &itemComponentRegistry)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent > > $onBeforeItemUseOn(::Player const &player, ::ItemUseOnEvent const &itemEvent)
MCAPI void $onBeforePlayerLeave(::Player const &player)
static MCAPI void bind(::Scripting::ModuleBindingBuilder &moduleBuilder)
MCAPI ScriptWorldBeforeEvents(::Scripting::WeakLifetimeScope scope, ::Level *level)
MCAPI void * $ctor(::Scripting::WeakLifetimeScope scope, ::Level *level)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent > > $onBeforeChat(::ChatEvent const &chatEvent, ::Player const &player)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithBlockBeforeEvent > > $onBeforePlayerInteractWithBlock(::Player &player, ::PlayerInteractWithBlockBeforeEvent const &eventData)
MCAPI ScriptWorldBeforeEvents(::ScriptModuleMinecraft::ScriptWorldBeforeEvents &&)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptExplosionStartedBeforeEvent > > $onBeforeExplosion(::ExplosionStartedEvent const &event)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithEntityBeforeEvent > > $onBeforePlayerInteractWithEntity(::Player &player, ::Actor &target, ::PlayerInteractWithEntityBeforeEvent const &eventData)
Definition ModuleBindingBuilder.h:30
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ActorAddEffectEvent.h:9
Definition BlockTryDestroyByPlayerEvent.h:16
Definition BlockTryPlaceByPlayerEvent.h:16
Definition ChatEvent.h:14
Definition ExplosionStartedEvent.h:15
Definition ItemUseEvent.h:9
Definition ItemUseOnEvent.h:11
Definition PlayerInteractWithBlockBeforeEvent.h:15
Definition PlayerInteractWithEntityBeforeEvent.h:14
Definition Alias.h:14