53class ScriptWorldBeforeEvents
59 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
60 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
61 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldBeforeEvents>> mHandle;
77 mBeforeExplosionSignal;
85 mBeforeItemUseEventSignal;
93 mBeforeItemUseOnEventSignal;
101 mBeforePlayerBreakBlockEventSignal;
109 mBeforePlayerPlaceBlockEventSignal;
117 mBeforeActorRemoveEventSignal;
125 mBeforePlayerInteractWithBlockEventSignal;
133 mBeforePlayerInteractWithEntityEventSignal;
141 mBeforePlayerLeaveEventSignal;
149 mBeforePlayerGameModeChangeEventSignal;
157 mBeforeEffectAddEventSignal;
165 mBeforeWeatherChangedEventSignal;
173 mBeforeWorldInitializeEventSignal;
178 ScriptWorldBeforeEvents& operator=(ScriptWorldBeforeEvents
const&);
179 ScriptWorldBeforeEvents(ScriptWorldBeforeEvents
const&);
180 ScriptWorldBeforeEvents();
185 virtual ~ScriptWorldBeforeEvents() ;
187 virtual void onBeforeActorRemove(
::Actor const& actor) ;
189 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
192 virtual ::std::optional<
196 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
199 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
202 virtual ::std::optional<
206 virtual ::std::optional<
210 virtual ::std::optional<
212 onBeforePlayerInteractWithBlock(
217 virtual ::std::optional<
219 onBeforePlayerInteractWithEntity(
225 virtual ::std::optional<
227 onBeforePlayerGameModeChange(
::Player const&, ::GameType, ::GameType) ;
229 virtual void onBeforeWorldInitialize(
231 blockComponentRegistry,
233 itemComponentRegistry
236 virtual void onBeforePlayerLeave(
::Player const& player) ;
238 virtual ::std::optional<
242 virtual ::std::optional<
244 onBeforeWeatherChangedEvent(
245 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
246 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
258 MCAPI ::std::vector<::ScriptModuleMinecraft::SignalNameSubscriberCount> getFineGrainedSignalSubscriberStats()
const;
260 MCAPI ::ScriptModuleMinecraft::ScriptWorldBeforeEvents&
263 MCAPI
void registerListeners();
289 MCAPI
void $onBeforeActorRemove(
::Actor const& actor);
291 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
294 MCAPI ::std::optional<
298 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
301 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
304 MCAPI ::std::optional<
308 MCAPI ::std::optional<
312 MCAPI ::std::optional<
316 MCAPI ::std::optional<
318 $onBeforePlayerInteractWithEntity(
324 MCAPI
void $onBeforeWorldInitialize(
326 blockComponentRegistry,
328 itemComponentRegistry
331 MCAPI
void $onBeforePlayerLeave(
::Player const& player);
333 MCAPI ::std::optional<
337 MCAPI ::std::optional<
339 $onBeforeWeatherChangedEvent(
340 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
341 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,