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 virtual ::GameplayHandlerResult<::CoordinatorResult>
28 handleEvent(::ExplosionStartedEvent& explosionStartedEvent) /*override*/;
29
30 virtual ::GameplayHandlerResult<::CoordinatorResult>
31 handleEvent(::BlockTryDestroyByPlayerEvent& eventData) /*override*/;
32
33 virtual ::GameplayHandlerResult<::CoordinatorResult>
34 handleEvent(::BlockTryPlaceByPlayerEvent const& eventData) /*override*/;
35
36 virtual ~ScriptBlockGameplayHandler() /*override*/ = default;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
46 ) const;
47
49 ::BlockTryPlaceByPlayerEvent const& eventData,
52 ) const;
53
55 ::ExplosionStartedEvent& explosionStartedEvent,
58 ) const;
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ExplosionStartedEvent& explosionStartedEvent);
65
66 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::BlockTryDestroyByPlayerEvent& eventData);
67
68 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::BlockTryPlaceByPlayerEvent const& eventData);
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
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 IScriptWorldBeforeEvents.h:40
Definition WeakLifetimeScope.h:7
Definition BlockTryDestroyByPlayerEvent.h:16
Definition BlockTryPlaceByPlayerEvent.h:16
Definition ExplosionStartedEvent.h:15
Definition TypedObjectHandle.h:8