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/runtime/Result.h"
7#include "mc/scripting/modules/minecraft/ScriptCustomComponentRegistry.h"
8#include "mc/scripting/modules/minecraft/block/IScriptBlockCustomComponentReader.h"
9#include "mc/scripting/modules/minecraft/events/ScriptBlockCustomComponentEventTypes.h"
10#include "mc/scripting/modules/minecraft/events/metadata/ScriptCustomComponentEventMetadata.h"
11#include "mc/world/events/ScriptDeferredEventListener.h"
12
13// auto generated forward declare list
14// clang-format off
15class Block;
17class BlockLegacy;
18class BlockPos;
19class HashedString;
20class IBlockSource;
23namespace BlockEvents { class BlockEntityFallOnEvent; }
24namespace BlockEvents { class BlockPlaceEvent; }
25namespace BlockEvents { class BlockPlayerDestroyEvent; }
26namespace BlockEvents { class BlockPlayerInteractEvent; }
27namespace BlockEvents { class BlockPlayerPlacingEvent; }
28namespace BlockEvents { class BlockQueuedTickEvent; }
29namespace BlockEvents { class BlockRandomTickEvent; }
30namespace BlockEvents { class BlockRandomTickLegacyEvent; }
31namespace BlockEvents { class BlockStepOffEvent; }
32namespace BlockEvents { class BlockStepOnEvent; }
33namespace Json { class Value; }
34namespace ScriptModuleMinecraft { class ScriptBlockCustomComponentInterface; }
35namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentAlreadyRegisteredError; }
36namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentReloadNewComponentError; }
37namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentReloadNewEventError; }
38namespace ScriptModuleMinecraft { struct ScriptBlockCustomComponentReloadVersionError; }
39namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
40namespace Scripting { class ModuleBindingBuilder; }
41namespace Scripting { class WeakLifetimeScope; }
42namespace Scripting { struct ModuleDescriptor; }
43// clang-format on
44
45namespace ScriptModuleMinecraft {
46
50public:
51 // ScriptBlockCustomComponentsRegistry inner types declare
52 // clang-format off
54 // clang-format on
55
56 // ScriptBlockCustomComponentsRegistry inner types define
58 public:
59 // member variables
60 // NOLINTBEGIN
65 // NOLINTEND
66
67 public:
68 // prevent constructor by default
72
73 public:
74 // member functions
75 // NOLINTBEGIN
76 MCNAPI void setClosureData(
79 );
80
82 // NOLINTEND
83
84 public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCNAPI void $dtor();
88 // NOLINTEND
89 };
90
91public:
92 // member variables
93 // NOLINTBEGIN
100 // NOLINTEND
101
102public:
103 // prevent constructor by default
107
108public:
109 // virtual functions
110 // NOLINTBEGIN
111 // vIndex: 8
112 virtual void onPreFlushAfterEvents() /*override*/;
113
114 // vIndex: 5
115 virtual void onFlushBlockCustomComponentAfterEvents(::ScriptDeferredFlushTracker& deferredTracker) /*override*/;
116
117 // vIndex: 9
118 virtual void onPostFlushAfterEvents() /*override*/;
119
120 // vIndex: 2
121 virtual void _onScriptInitializationComplete() /*override*/;
122
123 // vIndex: 1
124 virtual void _onReload() /*override*/;
125
126 // vIndex: 0
127 virtual ~ScriptBlockCustomComponentsRegistry() /*override*/;
128
129 // vIndex: 1
130 virtual bool
131 isValidComponentForBlock(::IBlockSource const& region, ::BlockPos blockPos, ::std::string_view componentName) const
132 /*override*/;
133 // NOLINTEND
134
135public:
136 // member functions
137 // NOLINTBEGIN
139
141 ::HashedString const& compName,
143 );
144
145 MCNAPI ::Scripting::Result<
146 void,
153 ::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair<
154 ::HashedString const,
156 compIt,
157 ::HashedString const& name,
159 );
160
161 MCNAPI ::Scripting::Result<
162 void,
169 ::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair<
170 ::HashedString const,
172 compIt,
173 ::HashedString const& name,
175 );
176
178 ::BlockLegacy& block,
179 ::std::vector<::gsl::not_null<::BlockCustomComponentsComponent*>> const& comps
180 );
181
183
184 MCNAPI bool
185 hasSubscriptionFor(::ScriptModuleMinecraft::ScriptBlockCustomComponentEventTypes type, ::Block const& block) const;
186
188
189 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent const& eventData) const;
190
191 MCNAPI void onPlayerDestroy(::BlockEvents::BlockPlayerDestroyEvent const& eventData) const;
192
194
195 MCNAPI void onQueuedTick(::BlockEvents::BlockQueuedTickEvent const& eventData) const;
196
197 MCNAPI void onRandomTick(::BlockEvents::BlockRandomTickEvent const& eventData) const;
198
200
201 MCNAPI void onStepOff(::BlockEvents::BlockStepOffEvent const& eventData) const;
202
203 MCNAPI void onStepOn(::BlockEvents::BlockStepOnEvent const& eventData) const;
204
205 MCNAPI ::Scripting::Result<
206 void,
213 ::HashedString const& name,
216 );
217
218 MCNAPI ::Scripting::Result<
219 void,
226 ::HashedString const& name,
229 );
230 // NOLINTEND
231
232public:
233 // static functions
234 // NOLINTBEGIN
235 MCNAPI static ::ScriptModuleMinecraft::ScriptCustomComponentEventMetadata<
238
239 MCNAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
240
242 ::Scripting::ModuleDescriptor const& moduleToDocumentFor,
243 ::Json::Value& eventOrderArray
244 );
245 // NOLINTEND
246
247public:
248 // constructor thunks
249 // NOLINTBEGIN
250 MCNAPI void* $ctor(::ScriptDeferredEventCoordinator& deferredEventCoordinator);
251 // NOLINTEND
252
253public:
254 // destructor thunk
255 // NOLINTBEGIN
256 MCNAPI void $dtor();
257 // NOLINTEND
258
259public:
260 // virtual function thunks
261 // NOLINTBEGIN
263
265
267
269
270 MCNAPI void $_onReload();
271
273 ::IBlockSource const& region,
274 ::BlockPos blockPos,
275 ::std::string_view componentName
276 ) const;
277 // NOLINTEND
278
279public:
280 // vftables
281 // NOLINTBEGIN
283
285
287 // NOLINTEND
288};
289
290} // namespace ScriptModuleMinecraft
Definition BlockCustomComponentsComponent.h:17
Definition BlockEntityFallOnEvent.h:16
Definition BlockPlaceEvent.h:16
Definition BlockPlayerDestroyEvent.h:17
Definition BlockPlayerInteractEvent.h:17
Definition BlockPlayerPlacingEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockRandomTickLegacyEvent.h:16
Definition BlockStepOffEvent.h:16
Definition BlockStepOnEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition Block.h:38
Definition HashedString.h:5
Definition IBlockSource.h:35
Definition Value.h:16
Definition ScriptDeferredEventCoordinator.h:16
Definition ScriptDeferredEventListener.h:10
Definition ScriptDeferredFlushTracker.h:5
Definition IScriptBlockCustomComponentReader.h:13
Definition ScriptBlockCustomComponentInterface.h:10
Definition ScriptBlockCustomComponentsRegistry.h:49
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 _bindComponentToCereal(::HashedString const &compName, ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface const &closures)
MCAPI ScriptBlockCustomComponentsRegistry(::ScriptDeferredEventCoordinator &deferredEventCoordinator)
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)
static MCAPI void bind(::Scripting::ModuleBindingBuilder &moduleBuilder)
MCAPI void onStepOn(::BlockEvents::BlockStepOnEvent const &eventData) const
MCAPI void onPlayerDestroy(::BlockEvents::BlockPlayerDestroyEvent const &eventData) const
MCAPI void beforeOnPlayerPlace(::BlockEvents::BlockPlayerPlacingEvent &eventData) const
static MCAPI ::ScriptModuleMinecraft::ScriptCustomComponentEventMetadata< ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface > const _getEventMetadata()
MCAPI bool hasSubscriptionFor(::ScriptModuleMinecraft::ScriptBlockCustomComponentEventTypes type, ::Block const &block) const
MCAPI void * $ctor(::ScriptDeferredEventCoordinator &deferredEventCoordinator)
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, ::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface const &closures)
MCAPI bool $isValidComponentForBlock(::IBlockSource const &region, ::BlockPos blockPos, ::std::string_view componentName) const
Definition ScriptCustomComponentRegistry.h:7
Definition ModuleBindingBuilder.h:30
Definition WeakLifetimeScope.h:12
Definition BlockRandomTickEvent.h:13
Definition ScriptBlockCustomComponentAlreadyRegisteredError.h:15
Definition ScriptBlockCustomComponentReloadNewComponentError.h:15
Definition ScriptBlockCustomComponentReloadNewEventError.h:15
Definition ScriptBlockCustomComponentReloadVersionError.h:15
MCAPI void setClosureData(::ScriptModuleMinecraft::ScriptBlockCustomComponentInterface &&closures, ::Scripting::WeakLifetimeScope const &scope)
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ModuleDescriptor.h:7
Definition Alias.h:14