LeviLamina
Loading...
Searching...
No Matches
ScriptBlockGameplayHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/TypedObjectHandle.h"
7#include "mc/gameplayhandlers/BlockGameplayHandler.h"
8#include "mc/gameplayhandlers/CoordinatorResult.h"
9#include "mc/gameplayhandlers/EventHandlerDispatcher.h"
10#include "mc/gameplayhandlers/GameplayHandlerResult.h"
11#include "mc/scripting/event_handlers/ScriptEventHandler.h"
12
13// auto generated forward declare list
14// clang-format off
18namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
19namespace Scripting { class WeakLifetimeScope; }
20// clang-format on
21
22class ScriptBlockGameplayHandler : public ::EventHandlerDispatcher<::BlockGameplayHandler>,
23 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 6
28 virtual ::GameplayHandlerResult<::CoordinatorResult>
29 handleEvent(::ExplosionStartedEvent& explosionStartedEvent) /*override*/;
30
31 // vIndex: 5
32 virtual ::GameplayHandlerResult<::CoordinatorResult>
33 handleEvent(::BlockTryDestroyByPlayerEvent& eventData) /*override*/;
34
35 // vIndex: 8
36 virtual ::GameplayHandlerResult<::CoordinatorResult>
37 handleEvent(::BlockTryPlaceByPlayerEvent const& eventData) /*override*/;
38
39 // vIndex: 0
40 virtual ~ScriptBlockGameplayHandler() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
50 ) const;
51
53 ::BlockTryPlaceByPlayerEvent const& eventData,
56 ) const;
57
59 ::ExplosionStartedEvent& explosionStartedEvent,
62 ) const;
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ExplosionStartedEvent& explosionStartedEvent);
69
70 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::BlockTryDestroyByPlayerEvent& eventData);
71
72 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::BlockTryPlaceByPlayerEvent const& eventData);
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition EventHandlerDispatcher.h:6
Definition ScriptBlockGameplayHandler.h:23
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::ExplosionStartedEvent &explosionStartedEvent)
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::BlockTryDestroyByPlayerEvent &eventData)
static MCAPI void ** $vftable()
MCAPI bool _handleExplosionStartedEvent(::ExplosionStartedEvent &explosionStartedEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI bool _handleBlockTryPlaceByPlayerEvent(::BlockTryPlaceByPlayerEvent const &eventData, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI bool _handleBlockTryDestroyByPlayerEvent(::BlockTryDestroyByPlayerEvent &eventData, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::BlockTryPlaceByPlayerEvent const &eventData)
Definition ScriptEventHandler.h:6
Definition WeakLifetimeScope.h:12
Definition BlockTryDestroyByPlayerEvent.h:16
Definition BlockTryPlaceByPlayerEvent.h:16
Definition ExplosionStartedEvent.h:15
Definition TypedObjectHandle.h:8