LeviLamina
Loading...
Searching...
No Matches
ScriptItemGameplayHandler.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/CoordinatorResult.h"
8#include "mc/gameplayhandlers/EventHandlerDispatcher.h"
9#include "mc/gameplayhandlers/GameplayHandlerResult.h"
10#include "mc/gameplayhandlers/ItemGameplayHandler.h"
11#include "mc/scripting/event_handlers/ScriptEventHandler.h"
12
13// auto generated forward declare list
14// clang-format off
15struct ItemUseEvent;
16struct ItemUseOnEvent;
17namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
18namespace Scripting { class WeakLifetimeScope; }
19// clang-format on
20
21class ScriptItemGameplayHandler : public ::EventHandlerDispatcher<::ItemGameplayHandler>,
22 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 11
27 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::ItemUseOnEvent& itemEvent) /*override*/;
28
29 // vIndex: 10
30 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::ItemUseEvent& itemEvent) /*override*/;
31
32 // vIndex: 0
33 virtual ~ScriptItemGameplayHandler() /*override*/ = default;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
40 ::ItemUseEvent& itemEvent,
43 );
44
46 ::ItemUseOnEvent& itemEvent,
49 );
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ItemUseOnEvent& itemEvent);
56
57 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ItemUseEvent& itemEvent);
58 // NOLINTEND
59
60public:
61 // vftables
62 // NOLINTBEGIN
63 MCNAPI static void** $vftable();
64 // NOLINTEND
65};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptItemGameplayHandler.h:22
MCAPI bool _handleItemUseOnEvent(::ItemUseOnEvent &itemEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle)
MCAPI bool _handleItemUseEvent(::ItemUseEvent &itemEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle)
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::ItemUseOnEvent &itemEvent)
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::ItemUseEvent &itemEvent)
static MCAPI void ** $vftable()
Definition WeakLifetimeScope.h:12
Definition ItemUseEvent.h:9
Definition ItemUseOnEvent.h:11
Definition TypedObjectHandle.h:8