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"
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; }
44namespace ScriptModuleMinecraft {
84 virtual void onBeforeActorRemove(
::Actor const& actor) ;
87 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
91 virtual ::std::optional<
96 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
100 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
104 virtual ::std::optional<
109 virtual ::std::optional<
114 virtual ::std::optional<
116 onBeforePlayerInteractWithBlock(
122 virtual ::std::optional<
124 onBeforePlayerInteractWithEntity(
131 virtual ::std::optional<
133 onBeforePlayerGameModeChange(
::Player const&, ::GameType, ::GameType) ;
136 virtual void onBeforeWorldInitialize(
138 blockComponentRegistry,
140 itemComponentRegistry
144 virtual void onBeforePlayerLeave(
::Player const& player) ;
147 virtual ::std::optional<
152 virtual ::std::optional<
154 onBeforeWeatherChangedEvent(
155 ::ScriptModuleMinecraft::ScriptWeatherType,
156 ::ScriptModuleMinecraft::ScriptWeatherType,
168 MCNAPI ::std::vector<::ScriptModuleMinecraft::SignalNameSubscriberCount>
171 MCNAPI ::ScriptModuleMinecraft::ScriptWorldBeforeEvents&
202 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
205 MCNAPI ::std::optional<
209 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
212 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
215 MCNAPI ::std::optional<
219 MCNAPI ::std::optional<
223 MCNAPI ::std::optional<
227 MCNAPI ::std::optional<
237 blockComponentRegistry,
239 itemComponentRegistry
244 MCNAPI ::std::optional<
Definition IScriptWorldBeforeEvents.h:40
Definition ScriptWorldBeforeEvents.h:48
MCAPI void $onBeforeActorRemove(::Actor const &actor)
MCAPI void registerListeners()
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)
static MCAPI void ** $vftable()
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