3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/deps/script_core/lifetime_registry/scripting/TypedObjectHandle.h"
8#include "mc/deps/script_core/lifetime_registry/scripting/WeakHandleFromThis.h"
9#include "mc/deps/script_core/lifetime_registry/scripting/WeakLifetimeScope.h"
10#include "mc/deps/script_core/scripting/Version.h"
11#include "mc/scripting/modules/minecraft/ScriptWeatherType.h"
12#include "mc/scripting/modules/minecraft/events/IScriptWorldBeforeEvents.h"
13#include "mc/scripting/modules/minecraft/events/ScriptFilteredEventSignal.h"
14#include "mc/world/level/GameType.h"
36namespace ScriptModuleMinecraft {
struct EmptyFilter; }
67namespace ScriptModuleMinecraft {
69class ScriptWorldBeforeEvents
75 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
76 ::ll::TypedStorage<8, 40, ::Scripting::Version> mServerModuleVersion;
77 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
78 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldBeforeEvents>> mHandle;
94 mBeforeExplosionSignal;
102 mBeforeItemUseEventSignal;
110 mBeforeItemUseOnEventSignal;
118 mBeforePlayerBreakBlockEventSignal;
126 mBeforePlayerPlaceBlockEventSignal;
134 mBeforeActorHealEventSignal;
142 mBeforeActorHurtEventSignal;
150 mBeforeActorRemoveEventSignal;
158 mBeforeActorItemPickupEventSignal;
166 mBeforePlayerInteractWithBlockEventSignal;
174 mBeforePlayerItemAttackEntityEventSignal;
182 mBeforePlayerInteractWithEntityEventSignal;
190 mBeforePlayerLeaveEventSignal;
198 mBeforePlayerGameModeChangeEventSignal;
206 mBeforeEffectAddEventSignal;
214 mBeforeWeatherChangedEventSignal;
222 mBeforeWorldInitializeEventSignal;
230 mBeforeActorTamedEventSignal;
238 mBeforeWorldClockRestartEventSignal;
243 ScriptWorldBeforeEvents& operator=(ScriptWorldBeforeEvents
const&);
244 ScriptWorldBeforeEvents(ScriptWorldBeforeEvents
const&);
245 ScriptWorldBeforeEvents();
250 virtual ~ScriptWorldBeforeEvents() ;
252 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealBeforeEvent>>
255 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtBeforeEvent>>
258 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorTamedBeforeEvent>>
259 onBeforeActorTamed(
::Actor const& actor,
::Actor const& tamingActor) ;
261 virtual void onBeforeActorRemove(
::Actor const& actor) ;
263 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
266 virtual ::std::optional<
270 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
273 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
276 virtual ::std::optional<
280 virtual ::std::optional<
284 virtual ::std::optional<
286 onBeforePlayerInteractWithBlock(
291 virtual ::std::optional<
293 onBeforePlayerItemAttackEntity(
299 virtual ::std::optional<
301 onBeforePlayerInteractWithEntity(
307 virtual ::std::optional<
309 onBeforePlayerGameModeChange(
::Player const& player, ::GameType fromGameMode, ::GameType toGameMode) ;
313 virtual void onBeforePlayerLeave(
::Player const& player) ;
315 virtual ::std::optional<
319 virtual ::std::optional<
323 virtual ::std::optional<
325 onBeforeWeatherChangedEvent(
326 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
327 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
331 virtual ::std::optional<
333 onBeforeWorldClockRestart(::gsl::not_null<::WorldClock*> clock,
int newTime) ;
347 MCNAPI ::std::vector<::ScriptModuleMinecraft::SignalNameSubscriberCount>
350 MCNAPI ::ScriptModuleMinecraft::ScriptWorldBeforeEvents&
379 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealBeforeEvent>>
382 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtBeforeEvent>>
385 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorTamedBeforeEvent>>
390 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
393 MCNAPI ::std::optional<
397 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
400 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
403 MCNAPI ::std::optional<
407 MCNAPI ::std::optional<
411 MCNAPI ::std::optional<
415 MCNAPI ::std::optional<
423 MCNAPI ::std::optional<
431 MCNAPI ::std::optional<
439 MCNAPI ::std::optional<
443 MCNAPI ::std::optional<
447 MCNAPI ::std::optional<
450 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
451 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
455 MCNAPI ::std::optional<
Definition IScriptWorldBeforeEvents.h:50
Definition ScriptFilteredEventSignal.h:8
Definition ScriptWorldBeforeEvents.h:71
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerItemAttackEntityBeforeEvent > > $onBeforePlayerItemAttackEntity(::Player &player, ::Actor &target, ::PlayerItemAttackEntityBeforeEvent const &eventData)
MCAPI void $onBeforeActorRemove(::Actor const &actor)
MCAPI void registerListeners()
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealBeforeEvent > > $onBeforeActorHeal(::Actor const &actor, ::ActorBeforeHealEvent const &eventData)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtBeforeEvent > > $onBeforeActorHurt(::Actor const &actor, ::ActorBeforeHurtEvent const &eventData)
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 void $onBeforeWorldInitialize(::ScriptingWorldInitializeEvent 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 * $ctor(::Scripting::WeakLifetimeScope scope, ::Level *level, ::Scripting::Version serverModuleVersion)
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, ::Scripting::Version serverModuleVersion)
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::ScriptWeatherChangedBeforeEvent > > $onBeforeWeatherChangedEvent(::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType, ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType, int duration)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorItemPickupBeforeEvent > > $onBeforeActorItemPickup(::ActorBeforeAcquireItemEvent &actorItemPickupEvent)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorTamedBeforeEvent > > $onBeforeActorTamed(::Actor const &actor, ::Actor const &tamingActor)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithEntityBeforeEvent > > $onBeforePlayerInteractWithEntity(::Player &player, ::Actor &target, ::PlayerInteractWithEntityBeforeEvent const &eventData)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerGameModeChangeBeforeEvent > > $onBeforePlayerGameModeChange(::Player const &player, ::GameType fromGameMode, ::GameType toGameMode)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldClockRestartBeforeEvent > > $onBeforeWorldClockRestart(::gsl::not_null<::WorldClock * > clock, int newTime)
Definition ModuleBindingBuilder.h:22
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition WorldClock.h:23
Definition ActorAddEffectEvent.h:9
Definition ActorBeforeAcquireItemEvent.h:14
Definition ActorBeforeHealEvent.h:13
Definition ActorBeforeHurtEvent.h:11
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 PlayerItemAttackEntityBeforeEvent.h:14
Definition EmptyFilter.h:12
Definition ScriptActorHealEventFilter.h:17
Definition ScriptActorHurtBeforeEventFilter.h:17
Definition ScriptActorItemPickupEventFilter.h:17
Definition ScriptActorTamedEventFilter.h:16
Definition ScriptBlockEventFilter.h:19
Definition ScriptWorldClockEventFilter.h:13
Definition ScriptActorAddEffectBeforeEvent.h:17
Definition ScriptActorHealBeforeEvent.h:17
Definition ScriptActorHurtBeforeEvent.h:19
Definition ScriptActorItemPickupBeforeEvent.h:16
Definition ScriptActorRemoveBeforeEvent.h:16
Definition ScriptActorTamedBeforeEvent.h:16
Definition ScriptChatSendBeforeEvent.h:15
Definition ScriptExplosionStartedBeforeEvent.h:17
Definition ScriptItemUseBeforeEvent.h:18
Definition ScriptItemUseOnBeforeEvent.h:18
Definition ScriptPlayerBreakBlockBeforeEvent.h:23
Definition ScriptPlayerGameModeChangeBeforeEvent.h:15
Definition ScriptPlayerInteractWithBlockBeforeEvent.h:20
Definition ScriptPlayerInteractWithEntityBeforeEvent.h:21
Definition ScriptPlayerItemAttackEntityBeforeEvent.h:23
Definition ScriptPlayerLeaveBeforeEvent.h:16
Definition ScriptPlayerPlaceBlockBeforeEvent.h:25
Definition ScriptWeatherChangedBeforeEvent.h:15
Definition ScriptWorldClockRestartBeforeEvent.h:16
Definition ScriptWorldInitializeBeforeEvent.h:19
Definition SignalNameSubscriberCount.h:7
Definition ScriptingWorldInitializeEvent.h:12