LeviLamina
Loading...
Searching...
No Matches
ScriptBlockCustomComponentsRegistry.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/deps/scripting/runtime/Result.h"
8#include "mc/scripting/modules/minecraft/ScriptCustomComponentRegistry.h"
9#include "mc/scripting/modules/minecraft/block/IScriptBlockCustomComponentReader.h"
10#include "mc/scripting/modules/minecraft/events/ScriptBlockCustomComponentEventTypes.h"
11#include "mc/scripting/modules/minecraft/events/metadata/ScriptCustomComponentEventMetadata.h"
12#include "mc/world/events/ScriptDeferredEventListener.h"
13
14// auto generated forward declare list
15// clang-format off
16class Block;
18class BlockLegacy;
19class BlockPos;
20class HashedString;
21class IBlockSource;
25namespace BlockEvents { class BlockEntityFallOnEvent; }
26namespace BlockEvents { class BlockPlaceEvent; }
27namespace BlockEvents { class BlockPlayerDestroyEvent; }
28namespace BlockEvents { class BlockPlayerInteractEvent; }
29namespace BlockEvents { class BlockPlayerPlacingEvent; }
30namespace BlockEvents { class BlockQueuedTickEvent; }
31namespace BlockEvents { class BlockRandomTickEvent; }
32namespace BlockEvents { class BlockRandomTickLegacyEvent; }
33namespace BlockEvents { class BlockStepOffEvent; }
34namespace BlockEvents { class BlockStepOnEvent; }
35namespace Json { class Value; }
36namespace ScriptModuleMinecraft { class ScriptBlockCustomComponentInterface; }
37namespace ScriptModuleMinecraft { class ScriptCustomComponentParameterCache; }
38namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentAlreadyRegisteredError; }
39namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentReloadNewComponentError; }
40namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentReloadNewEventError; }
41namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentReloadVersionError; }
42namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
43namespace ScriptModuleMinecraft { struct ScriptCustomComponentParameters; }
44namespace Scripting { class ModuleBindingBuilder; }
45namespace Scripting { class WeakLifetimeScope; }
46namespace Scripting { struct ModuleDescriptor; }
47// clang-format on
48
49namespace ScriptModuleMinecraft {
50
54public:
55 // ScriptBlockCustomComponentsRegistry inner types declare
56 // clang-format off
58 // clang-format on
59
60 // ScriptBlockCustomComponentsRegistry inner types define
62 public:
63 // member variables
64 // NOLINTBEGIN
70 // NOLINTEND
71
72 public:
73 // prevent constructor by default
77
78 public:
79 // member functions
80 // NOLINTBEGIN
81 MCNAPI void setClosureData(
84 );
85
87 // NOLINTEND
88
89 public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCNAPI void $dtor();
93 // NOLINTEND
94 };
95
96public:
97 // member variables
98 // NOLINTBEGIN
106 // NOLINTEND
107
108public:
109 // prevent constructor by default
113
114public:
115 // virtual functions
116 // NOLINTBEGIN
117 // vIndex: 8
118 virtual void onPreFlushAfterEvents() /*override*/;
119
120 // vIndex: 5
121 virtual void onFlushBlockCustomComponentAfterEvents(::ScriptDeferredFlushTracker& deferredTracker) /*override*/;
122
123 // vIndex: 9
124 virtual void onPostFlushAfterEvents() /*override*/;
125
126 // vIndex: 2
127 virtual void _onScriptInitializationComplete() /*override*/;
128
129 // vIndex: 1
130 virtual void _onReload() /*override*/;
131
132 // vIndex: 0
133 virtual ~ScriptBlockCustomComponentsRegistry() /*override*/;
134
135 // vIndex: 1
136 virtual ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
137 tryGetCustomComponentParametersForItem(
138 ::IBlockSource const& region,
139 ::BlockPos blockPos,
140 ::std::string_view componentName,
142 ) const /*override*/;
143 // NOLINTEND
144
145public:
146 // member functions
147 // NOLINTBEGIN
150 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
152 );
153
155 ::HashedString const& compName,
157 );
158
159 MCNAPI ::Scripting::Result<
160 void,
167 ::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair<
168 ::HashedString const,
170 compIt,
171 ::HashedString const& name
172 );
173
174 MCNAPI ::Scripting::Result<
175 void,
182 ::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair<
183 ::HashedString const,
185 compIt,
186 ::HashedString const& name,
188 );
189
191 ::BlockLegacy& block,
192 ::std::vector<::gsl::not_null<::BlockCustomComponentsComponent*>> const& comps
193 );
194
196
197 MCNAPI bool
198 hasSubscriptionFor(::ScriptModuleMinecraft::ScriptBlockCustomComponentEventTypes type, ::Block const& block) const;
199
201
202 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent const& eventData) const;
203
204 MCNAPI void onPlayerBreak(::BlockEvents::BlockPlayerDestroyEvent const& eventData) const;
205
207
208 MCNAPI void onQueuedTick(::BlockEvents::BlockQueuedTickEvent const& eventData) const;
209
210 MCNAPI void onRandomTick(::BlockEvents::BlockRandomTickEvent const& eventData) const;
211
213
214 MCNAPI void onStepOff(::BlockEvents::BlockStepOffEvent const& eventData) const;
215
216 MCNAPI void onStepOn(::BlockEvents::BlockStepOnEvent const& eventData) const;
217
218 MCNAPI ::Scripting::Result<
219 void,
226 ::HashedString const& name,
229 );
230
231 MCNAPI ::Scripting::Result<
232 void,
239 ::HashedString const& name,
242 );
243 // NOLINTEND
244
245public:
246 // static functions
247 // NOLINTBEGIN
248 MCNAPI static ::ScriptModuleMinecraft::ScriptCustomComponentEventMetadata<
251
252 MCNAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
253
255 ::Scripting::ModuleDescriptor const& moduleToDocumentFor,
256 ::Json::Value& eventOrderArray
257 );
258 // NOLINTEND
259
260public:
261 // constructor thunks
262 // NOLINTBEGIN
263 MCNAPI void* $ctor(
265 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
267 );
268 // NOLINTEND
269
270public:
271 // destructor thunk
272 // NOLINTBEGIN
273 MCNAPI void $dtor();
274 // NOLINTEND
275
276public:
277 // virtual function thunks
278 // NOLINTBEGIN
280
282
284
286
287 MCNAPI void $_onReload();
288
289 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
291 ::IBlockSource const& region,
292 ::BlockPos blockPos,
293 ::std::string_view componentName,
295 ) const;
296 // NOLINTEND
297
298public:
299 // vftables
300 // NOLINTBEGIN
302
304
306 // NOLINTEND
307};
308
309} // namespace ScriptModuleMinecraft
Definition BlockCustomComponentsComponent.h:17
Definition BlockEntityFallOnEvent.h:16
Definition BlockPlaceEvent.h:16
Definition BlockPlayerDestroyEvent.h:17
Definition BlockPlayerInteractEvent.h:18
Definition BlockPlayerPlacingEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockRandomTickLegacyEvent.h:16
Definition BlockStepOffEvent.h:16
Definition BlockStepOnEvent.h:16
Definition BlockLegacy.h:86
Definition BlockPos.h:18
Definition Block.h:38
Definition HashedString.h:5
Definition IBlockSource.h:35
Definition Value.h:16
Definition ScriptDeferredEventCoordinator.h:18
Definition ScriptDeferredEventListener.h:10
Definition ScriptDeferredFlushTracker.h:13
Definition IScriptBlockCustomComponentReader.h:18
Definition ScriptBlockCustomComponentInterface.h:10
Definition ScriptBlockCustomComponentsRegistry.h:53
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewComponentError > tryRegisterCustomComponent(::HashedString const &name, ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface &&closures, ::Scripting::WeakLifetimeScope const &scope)
MCAPI void onPlayerBreak(::BlockEvents::BlockPlayerDestroyEvent const &eventData) const
MCAPI void _bindComponentToCereal(::HashedString const &compName, ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface const &closures)
MCAPI void onStepOff(::BlockEvents::BlockStepOffEvent const &eventData) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent const &eventData) const
MCAPI void onEntityFallOn(::BlockEvents::BlockEntityFallOnEvent &eventData) const
MCAPI void onPlayerInteract(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void onRandomTickLegacy(::BlockEvents::BlockRandomTickLegacyEvent const &eventData) const
MCAPI void _registerBlockForEventing(::BlockLegacy &block, ::std::vector<::gsl::not_null<::BlockCustomComponentsComponent * > > const &comps)
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewComponentError > tryRegisterCustomComponentV1(::HashedString const &name, ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface &&closures, ::Scripting::WeakLifetimeScope const &scope)
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewComponentError > _componentReloadRegistrationValidators(::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair< ::HashedString const, ::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry::ScriptBlockCustomComponentData > > > > const &compIt, ::HashedString const &name, ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface const &closures)
MCAPI void onQueuedTick(::BlockEvents::BlockQueuedTickEvent const &eventData) const
MCAPI void onRandomTick(::BlockEvents::BlockRandomTickEvent const &eventData) const
MCAPI void $onFlushBlockCustomComponentAfterEvents(::ScriptDeferredFlushTracker &deferredTracker)
static MCAPI void generateOrderDocumentationForVersion(::Scripting::ModuleDescriptor const &moduleToDocumentFor, ::Json::Value &eventOrderArray)
MCAPI ScriptBlockCustomComponentsRegistry(::ServerScriptManagerEvents &events, ::ScriptDeferredEventCoordinator &deferredEventCoordinator, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache &parameterCache)
static MCAPI void bind(::Scripting::ModuleBindingBuilder &moduleBuilder)
MCAPI void * $ctor(::ServerScriptManagerEvents &events, ::ScriptDeferredEventCoordinator &deferredEventCoordinator, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache &parameterCache)
MCAPI void onStepOn(::BlockEvents::BlockStepOnEvent const &eventData) const
MCAPI void beforeOnPlayerPlace(::BlockEvents::BlockPlayerPlacingEvent &eventData) const
static MCAPI ::ScriptModuleMinecraft::ScriptCustomComponentEventMetadata< ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface > const _getEventMetadata()
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters > const & $tryGetCustomComponentParametersForItem(::IBlockSource const &region, ::BlockPos blockPos, ::std::string_view componentName, ::Scripting::WeakLifetimeScope const &scope) const
MCAPI bool hasSubscriptionFor(::ScriptModuleMinecraft::ScriptBlockCustomComponentEventTypes type, ::Block const &block) const
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptBlockCustomComponentReloadNewComponentError > _componentRegistrationValidatorsCommon(::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair< ::HashedString const, ::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry::ScriptBlockCustomComponentData > > > > const &compIt, ::HashedString const &name)
Definition ScriptCustomComponentParameterCache.h:19
Definition ScriptCustomComponentRegistry.h:10
Definition ModuleBindingBuilder.h:30
Definition WeakLifetimeScope.h:12
Definition BlockRandomTickEvent.h:13
Definition ScriptBlockCustomComponentAlreadyRegisteredError.h:16
Definition ScriptBlockCustomComponentReloadNewComponentError.h:16
Definition ScriptBlockCustomComponentReloadNewEventError.h:16
Definition ScriptBlockCustomComponentReloadVersionError.h:16
MCAPI void setClosureData(::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface &&closures, ::Scripting::WeakLifetimeScope const &scope)
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ModuleDescriptor.h:7
Definition ServerScriptManagerEvents.h:13
Definition Alias.h:14