3#include "mc/_HeaderOutputPredefine.h"
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"
27namespace ScriptModuleMinecraft {
class ScriptBlockComponentRegistry; }
28namespace ScriptModuleMinecraft {
class ScriptItemComponentRegistry; }
29namespace ScriptModuleMinecraft {
struct ScriptActorAddEffectBeforeEvent; }
30namespace ScriptModuleMinecraft {
struct ScriptChatSendBeforeEvent; }
31namespace ScriptModuleMinecraft {
struct ScriptExplosionStartedBeforeEvent; }
32namespace ScriptModuleMinecraft {
struct ScriptItemUseBeforeEvent; }
33namespace ScriptModuleMinecraft {
struct ScriptItemUseOnBeforeEvent; }
34namespace ScriptModuleMinecraft {
struct ScriptPlayerBreakBlockBeforeEvent; }
35namespace ScriptModuleMinecraft {
struct ScriptPlayerGameModeChangeBeforeEvent; }
36namespace ScriptModuleMinecraft {
struct ScriptPlayerInteractWithBlockBeforeEvent; }
37namespace ScriptModuleMinecraft {
struct ScriptPlayerInteractWithEntityBeforeEvent; }
38namespace ScriptModuleMinecraft {
struct ScriptPlayerPlaceBlockBeforeEvent; }
39namespace ScriptModuleMinecraft {
struct ScriptWeatherChangedBeforeEvent; }
40namespace ScriptModuleMinecraft {
struct SignalNameSubscriberCount; }
41namespace Scripting {
class ModuleBindingBuilder; }
42namespace Scripting {
class WeakLifetimeScope; }
45namespace ScriptModuleMinecraft {
88 virtual void onBeforeActorRemove(
::Actor const& actor) ;
91 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
95 virtual ::std::optional<
100 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
104 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
108 virtual ::std::optional<
113 virtual ::std::optional<
118 virtual ::std::optional<
120 onBeforePlayerInteractWithBlock(
126 virtual ::std::optional<
128 onBeforePlayerInteractWithEntity(
135 virtual ::std::optional<
137 onBeforePlayerGameModeChange(
::Player const&, ::GameType, ::GameType) ;
140 virtual void onBeforeWorldInitialize(
142 blockComponentRegistry,
144 itemComponentRegistry
148 virtual void onBeforePlayerLeave(
::Player const& player) ;
154 virtual ::std::optional<
159 virtual ::std::optional<
161 onBeforeWeatherChangedEvent(
162 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
163 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
175 MCAPI ::std::vector<::ScriptModuleMinecraft::SignalNameSubscriberCount> getFineGrainedSignalSubscriberStats()
const;
179 MCAPI ::ScriptModuleMinecraft::ScriptWorldBeforeEvents&
182 MCAPI
void registerListeners();
208 MCAPI
void $onBeforeActorRemove(
::Actor const& actor);
210 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
213 MCAPI ::std::optional<
217 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
220 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
223 MCAPI ::std::optional<
227 MCAPI ::std::optional<
231 MCAPI ::std::optional<
235 MCAPI ::std::optional<
237 $onBeforePlayerInteractWithEntity(
243 MCAPI
void $onBeforeWorldInitialize(
245 blockComponentRegistry,
247 itemComponentRegistry
250 MCAPI
void $onBeforePlayerLeave(
::Player const& player);
254 MCAPI ::std::optional<
258 MCAPI ::std::optional<
260 $onBeforeWeatherChangedEvent(
261 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
262 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
270 MCAPI
static void** $vftable();
Definition IScriptWorldBeforeEvents.h:41
Definition ScriptWorldBeforeEvents.h:49
Definition ModuleBindingBuilder.h:30
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ActorAddEffectEvent.h:11
Definition BlockTryDestroyByPlayerEvent.h:16
Definition BlockTryPlaceByPlayerEvent.h:16
Definition ChatEvent.h:14
Definition ClientJoinedEvent.h:10
Definition ExplosionStartedEvent.h:15
Definition ItemUseEvent.h:11
Definition ItemUseOnEvent.h:13
Definition PlayerInteractWithBlockBeforeEvent.h:15
Definition PlayerInteractWithEntityBeforeEvent.h:14