3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/scripting/runtime/Result.h"
7#include "mc/scripting/modules/minecraft/ScriptCustomComponentRegistry.h"
8#include "mc/scripting/modules/minecraft/events/ScriptBlockCustomComponentEventTypes.h"
9#include "mc/scripting/modules/minecraft/events/metadata/ScriptCustomComponentEventMetadata.h"
10#include "mc/world/events/ScriptDeferredEventListener.h"
20namespace BlockEvents {
class BlockEntityFallOnEvent; }
21namespace BlockEvents {
class BlockPlaceEvent; }
22namespace BlockEvents {
class BlockPlayerDestroyEvent; }
23namespace BlockEvents {
class BlockPlayerInteractEvent; }
24namespace BlockEvents {
class BlockPlayerPlacingEvent; }
25namespace BlockEvents {
class BlockQueuedTickEvent; }
27namespace BlockEvents {
class BlockStepOffEvent; }
28namespace BlockEvents {
class BlockStepOnEvent; }
29namespace Json {
class Value; }
30namespace ScriptModuleMinecraft {
class ScriptBlockCustomComponentInterface; }
31namespace ScriptModuleMinecraft {
struct ScriptBlockCustomComponentAlreadyRegisteredError; }
32namespace ScriptModuleMinecraft {
struct ScriptBlockCustomComponentReloadNewComponentError; }
33namespace ScriptModuleMinecraft {
struct ScriptBlockCustomComponentReloadNewEventError; }
34namespace ScriptModuleMinecraft {
struct ScriptBlockCustomComponentReloadVersionError; }
35namespace ScriptModuleMinecraft {
struct ScriptCustomComponentInvalidRegistryError; }
36namespace Scripting {
class ModuleBindingBuilder; }
37namespace Scripting {
class WeakLifetimeScope; }
38namespace Scripting {
struct ModuleDescriptor; }
41namespace ScriptModuleMinecraft {
71 MCAPI
void setClosureData(
107 virtual void onPreFlushAfterEvents() ;
113 virtual void onPostFlushAfterEvents() ;
116 virtual void _onScriptInitializationComplete() ;
119 virtual void _onReload() ;
130 MCAPI
void _bindComponentToCereal(
135 MCAPI ::Scripting::Result<
142 _componentRegistrationValidatorsCommon(
143 ::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair<
151 MCAPI ::Scripting::Result<
158 _componentReloadRegistrationValidators(
159 ::std::_List_iterator<::std::_List_val<::std::_List_simple_types<::std::pair<
167 MCAPI
void _registerBlockForEventing(
169 ::std::vector<::gsl::not_null<::BlockCustomComponentsComponent*>>
const& comps
175 hasSubscriptionFor(::ScriptModuleMinecraft::ScriptBlockCustomComponentEventTypes type,
::Block const& block)
const;
193 MCAPI ::Scripting::Result<
200 tryRegisterCustomComponent(
206 MCAPI ::Scripting::Result<
213 tryRegisterCustomComponentV1(
223 MCAPI static ::ScriptModuleMinecraft::ScriptCustomComponentEventMetadata<
229 MCAPI
static void generateOrderDocumentationForVersion(
250 MCAPI
void $onPreFlushAfterEvents();
254 MCAPI
void $onPostFlushAfterEvents();
256 MCAPI
void $_onScriptInitializationComplete();
258 MCAPI
void $_onReload();
264 MCAPI
static void** $vftableForScriptDeferredEventListener();
266 MCAPI
static void** $vftableForScriptCustomComponentRegistry();
Definition BlockCustomComponentsComponent.h:16
Definition BlockEntityFallOnEvent.h:15
Definition BlockPlaceEvent.h:15
Definition BlockPlayerDestroyEvent.h:15
Definition BlockPlayerInteractEvent.h:15
Definition BlockPlayerPlacingEvent.h:15
Definition BlockQueuedTickEvent.h:15
Definition BlockRandomTickEvent.h:15
Definition BlockStepOffEvent.h:15
Definition BlockStepOnEvent.h:15
Definition BlockLegacy.h:88
Definition HashedString.h:5
Definition ScriptDeferredEventCoordinator.h:16
Definition ScriptDeferredEventListener.h:10
Definition ScriptDeferredFlushTracker.h:5
Definition ScriptBlockCustomComponentInterface.h:10
Definition ScriptBlockCustomComponentsRegistry.h:44
Definition ScriptCustomComponentRegistry.h:7
Definition ModuleBindingBuilder.h:30
Definition WeakLifetimeScope.h:12
Definition BlockRandomTickEvent.h:11
Definition ScriptBlockCustomComponentAlreadyRegisteredError.h:15
Definition ScriptBlockCustomComponentReloadNewComponentError.h:15
Definition ScriptBlockCustomComponentReloadNewEventError.h:15
Definition ScriptBlockCustomComponentReloadVersionError.h:15
Definition ScriptBlockCustomComponentsRegistry.h:52
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ModuleDescriptor.h:7