3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/scripting/modules/minecraft/ScriptWeatherType.h"
8#include "mc/world/level/GameType.h"
48namespace ScriptModuleMinecraft {
56 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
61 virtual ::std::optional<
63 onBeforeWeatherChangedEvent(
64 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
65 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
69 virtual ::std::optional<
71 onBeforePlayerItemAttackEntity(
77 virtual ::std::optional<
79 onBeforePlayerInteractWithEntity(
85 virtual ::std::optional<
89 virtual ::std::optional<
91 onBeforePlayerGameModeChange(
::Player const& player, ::GameType fromGameMode, ::GameType toGameMode);
93 virtual void onBeforePlayerLeave(
::Player const& player);
95 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealBeforeEvent>>
98 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtBeforeEvent>>
101 virtual void onBeforeActorRemove(
::Actor const& actor);
103 virtual ::std::optional<
107 virtual ::std::optional<
111 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorTamedBeforeEvent>>
112 onBeforeActorTamed(
::Actor const& actor,
::Actor const& tamingActor);
114 virtual ::std::optional<
118 virtual ::std::optional<
122 virtual ::std::optional<
126 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
129 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
132 virtual ::std::optional<
134 onBeforeWorldClockRestart(::gsl::not_null<::WorldClock*> clock,
int newTime);
140 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
145 MCNAPI ::std::optional<
148 ::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType,
149 ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType,
153 MCNAPI ::std::optional<
161 MCNAPI ::std::optional<
169 MCNAPI ::std::optional<
173 MCNAPI ::std::optional<
179 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealBeforeEvent>>
182 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtBeforeEvent>>
187 MCNAPI ::std::optional<
191 MCNAPI ::std::optional<
195 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorTamedBeforeEvent>>
198 MCNAPI ::std::optional<
202 MCNAPI ::std::optional<
206 MCNAPI ::std::optional<
210 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
213 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
216 MCNAPI ::std::optional<
Definition IScriptWorldBeforeEvents.h:50
MCAPI void $onBeforeActorRemove(::Actor const &actor)
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::ScriptPlayerPlaceBlockBeforeEvent > > $onBeforePlayerPlaceBlock(::Player const &player, ::BlockTryPlaceByPlayerEvent const &eventData)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent > > $onBeforeItemUseOn(::Player const &player, ::ItemUseOnEvent const &itemEvent)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHealBeforeEvent > > $onBeforeActorHeal(::Actor const &actor, ::ActorBeforeHealEvent const &eventData)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithEntityBeforeEvent > > $onBeforePlayerInteractWithEntity(::Player &player, ::Actor &target, ::PlayerInteractWithEntityBeforeEvent const &eventData)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerItemAttackEntityBeforeEvent > > $onBeforePlayerItemAttackEntity(::Player &player, ::Actor &target, ::PlayerItemAttackEntityBeforeEvent const &eventData)
MCAPI void $onBeforePlayerLeave(::Player const &player)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent > > $onBeforeChat(::ChatEvent const &chatEvent, ::Player const &player)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWorldClockRestartBeforeEvent > > $onBeforeWorldClockRestart(::gsl::not_null<::WorldClock * > clock, int newTime)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorAddEffectBeforeEvent > > $onBeforeEffectAddedEventSend(::ActorAddEffectEvent &actorEffectAddedEvent, ::Actor const &actor)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorTamedBeforeEvent > > $onBeforeActorTamed(::Actor const &actor, ::Actor const &tamingActor)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorItemPickupBeforeEvent > > $onBeforeActorItemPickup(::ActorBeforeAcquireItemEvent &actorItemPickupEvent)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorHurtBeforeEvent > > $onBeforeActorHurt(::Actor const &actor, ::ActorBeforeHurtEvent const &eventData)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptExplosionStartedBeforeEvent > > $onBeforeExplosion(::ExplosionStartedEvent const &event)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerGameModeChangeBeforeEvent > > $onBeforePlayerGameModeChange(::Player const &player, ::GameType fromGameMode, ::GameType toGameMode)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptWeatherChangedBeforeEvent > > $onBeforeWeatherChangedEvent(::ScriptModuleMinecraft::ScriptWeatherType previousWeatherType, ::ScriptModuleMinecraft::ScriptWeatherType newWeatherType, int duration)
static MCAPI void ** $vftable()
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent > > $onBeforeItemUse(::Player const &player, ::ItemUseEvent const &itemEvent)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithBlockBeforeEvent > > $onBeforePlayerInteractWithBlock(::Player &player, ::PlayerInteractWithBlockBeforeEvent const &eventData)
Definition StrongTypedObjectHandle.h:8
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 ScriptActorAddEffectBeforeEvent.h:17
Definition ScriptActorHealBeforeEvent.h:17
Definition ScriptActorHurtBeforeEvent.h:19
Definition ScriptActorItemPickupBeforeEvent.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 ScriptPlayerPlaceBlockBeforeEvent.h:25
Definition ScriptWeatherChangedBeforeEvent.h:15
Definition ScriptWorldClockRestartBeforeEvent.h:16
Definition ScriptingWorldInitializeEvent.h:12