LeviLamina
Loading...
Searching...
No Matches
IScriptWorldBeforeEvents.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/scripting/modules/minecraft/ScriptWeatherType.h"
8#include "mc/world/level/GameType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Player;
17struct ChatEvent;
19struct ItemUseEvent;
20struct ItemUseOnEvent;
23namespace ScriptModuleMinecraft { class ScriptBlockComponentRegistry; }
24namespace ScriptModuleMinecraft { class ScriptItemComponentRegistry; }
25namespace ScriptModuleMinecraft { struct ScriptActorAddEffectBeforeEvent; }
26namespace ScriptModuleMinecraft { struct ScriptChatSendBeforeEvent; }
27namespace ScriptModuleMinecraft { struct ScriptExplosionStartedBeforeEvent; }
28namespace ScriptModuleMinecraft { struct ScriptItemUseBeforeEvent; }
29namespace ScriptModuleMinecraft { struct ScriptItemUseOnBeforeEvent; }
30namespace ScriptModuleMinecraft { struct ScriptPlayerBreakBlockBeforeEvent; }
31namespace ScriptModuleMinecraft { struct ScriptPlayerGameModeChangeBeforeEvent; }
32namespace ScriptModuleMinecraft { struct ScriptPlayerInteractWithBlockBeforeEvent; }
33namespace ScriptModuleMinecraft { struct ScriptPlayerInteractWithEntityBeforeEvent; }
34namespace ScriptModuleMinecraft { struct ScriptPlayerPlaceBlockBeforeEvent; }
35namespace ScriptModuleMinecraft { struct ScriptWeatherChangedBeforeEvent; }
36// clang-format on
37
38namespace ScriptModuleMinecraft {
39
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~IScriptWorldBeforeEvents() = default;
46
47 // vIndex: 1
48 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
49 onBeforeChat(::ChatEvent const&, ::Player const&);
50
51 // vIndex: 2
52 virtual void onBeforeWorldInitialize(
55 );
56
57 // vIndex: 3
58 virtual ::std::optional<
60 onBeforeWeatherChangedEvent(
61 ::ScriptModuleMinecraft::ScriptWeatherType,
62 ::ScriptModuleMinecraft::ScriptWeatherType,
63 int
64 );
65
66 // vIndex: 4
67 virtual ::std::optional<
69 onBeforePlayerInteractWithEntity(::Player&, ::Actor&, ::PlayerInteractWithEntityBeforeEvent const&);
70
71 // vIndex: 5
72 virtual ::std::optional<
74 onBeforePlayerInteractWithBlock(::Player&, ::PlayerInteractWithBlockBeforeEvent const&);
75
76 // vIndex: 6
77 virtual ::std::optional<
79 onBeforePlayerGameModeChange(::Player const&, ::GameType, ::GameType);
80
81 // vIndex: 7
82 virtual void onBeforePlayerLeave(::Player const&);
83
84 // vIndex: 8
85 virtual void onBeforeActorRemove(::Actor const&);
86
87 // vIndex: 9
88 virtual ::std::optional<
90 onBeforeEffectAddedEventSend(::ActorAddEffectEvent&, ::Actor const&);
91
92 // vIndex: 10
93 virtual ::std::optional<
95 onBeforeExplosion(::ExplosionStartedEvent const&);
96
97 // vIndex: 11
98 virtual ::std::optional<
100 onBeforePlayerBreakBlock(::Player const&, ::BlockTryDestroyByPlayerEvent const&);
101
102 // vIndex: 12
103 virtual ::std::optional<
105 onBeforePlayerPlaceBlock(::Player const&, ::BlockTryPlaceByPlayerEvent const&);
106
107 // vIndex: 13
108 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
109 onBeforeItemUse(::Player const&, ::ItemUseEvent const&);
110
111 // vIndex: 14
112 virtual ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
113 onBeforeItemUseOn(::Player const&, ::ItemUseOnEvent const&);
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent>>
121
125 );
126
127 MCNAPI ::std::optional<
130
131 MCNAPI ::std::optional<
134
135 MCNAPI ::std::optional<
137 $onBeforePlayerGameModeChange(::Player const&, ::GameType, ::GameType);
138
139 MCNAPI void $onBeforePlayerLeave(::Player const&);
140
141 MCNAPI void $onBeforeActorRemove(::Actor const&);
142
143 MCNAPI ::std::optional<
146
147 MCNAPI ::std::optional<
150
151 MCNAPI ::std::optional<
154
155 MCNAPI ::std::optional<
158
159 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent>>
161
162 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent>>
164 // NOLINTEND
165
166public:
167 // vftables
168 // NOLINTBEGIN
169 MCNAPI static void** $vftable();
170 // NOLINTEND
171};
172
173} // namespace ScriptModuleMinecraft
Definition Actor.h:103
Definition Player.h:119
Definition IScriptWorldBeforeEvents.h:40
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseOnBeforeEvent > > $onBeforeItemUseOn(::Player const &, ::ItemUseOnEvent const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerGameModeChangeBeforeEvent > > $onBeforePlayerGameModeChange(::Player const &, ::GameType, ::GameType)
MCAPI void $onBeforeActorRemove(::Actor const &)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptChatSendBeforeEvent > > $onBeforeChat(::ChatEvent const &, ::Player const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorAddEffectBeforeEvent > > $onBeforeEffectAddedEventSend(::ActorAddEffectEvent &, ::Actor const &)
MCAPI void $onBeforeWorldInitialize(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockComponentRegistry > const &, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponentRegistry > const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerPlaceBlockBeforeEvent > > $onBeforePlayerPlaceBlock(::Player const &, ::BlockTryPlaceByPlayerEvent const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerBreakBlockBeforeEvent > > $onBeforePlayerBreakBlock(::Player const &, ::BlockTryDestroyByPlayerEvent const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithBlockBeforeEvent > > $onBeforePlayerInteractWithBlock(::Player &, ::PlayerInteractWithBlockBeforeEvent const &)
MCAPI void $onBeforePlayerLeave(::Player const &)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemUseBeforeEvent > > $onBeforeItemUse(::Player const &, ::ItemUseEvent const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptExplosionStartedBeforeEvent > > $onBeforeExplosion(::ExplosionStartedEvent const &)
MCAPI ::std::optional< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayerInteractWithEntityBeforeEvent > > $onBeforePlayerInteractWithEntity(::Player &, ::Actor &, ::PlayerInteractWithEntityBeforeEvent const &)
Definition StrongTypedObjectHandle.h:8
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