LeviLamina
Loading...
Searching...
No Matches
ScriptItemCustomComponentUseEvent.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/ecs/WeakEntityRef.h"
7
#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8
#include "mc/scripting/modules/minecraft/events/ScriptCustomComponentPubSubConnectors.h"
9
#include "mc/scripting/modules/minecraft/events/ScriptItemCustomComponentAfterEvent.h"
10
#include "mc/scripting/modules/minecraft/events/ScriptItemCustomComponentIntermediateStorage.h"
11
#include "mc/world/item/ItemStack.h"
12
13
// auto generated forward declare list
14
// clang-format off
15
class
Player
;
16
namespace
ScriptModuleMinecraft {
class
ScriptItemStack; }
17
namespace
ScriptModuleMinecraft {
class
ScriptPlayer; }
18
namespace
Scripting {
class
WeakLifetimeScope; }
19
namespace
Scripting {
struct
ClassBinding; }
20
// clang-format on
21
22
namespace
ScriptModuleMinecraft {
23
24
struct
ScriptItemCustomComponentUseEvent
:
public
::ScriptModuleMinecraft::ScriptItemCustomComponentAfterEvent
{
25
public
:
26
// ScriptItemCustomComponentUseEvent inner types declare
27
// clang-format off
28
struct
IntermediateStorage
;
29
// clang-format on
30
31
// ScriptItemCustomComponentUseEvent inner types define
32
using
EventConnectorsType
=
33
::ScriptModuleMinecraft::ScriptCustomComponentPubSubConnectors
<void(
bool
&,
::ItemStack
&,
::Player
&)>;
34
35
struct
IntermediateStorage
:
public
::ScriptModuleMinecraft::ScriptItemCustomComponentIntermediateStorage
{
36
public
:
37
// member variables
38
// NOLINTBEGIN
39
::ll::TypedStorage<8, 152, ::ItemStack const> mItemStack;
40
::ll::TypedStorage<8, 24, ::WeakEntityRef const> mPlayer;
41
// NOLINTEND
42
43
public
:
44
// member functions
45
// NOLINTBEGIN
46
MCAPI
~IntermediateStorage
();
47
// NOLINTEND
48
49
public
:
50
// destructor thunk
51
// NOLINTBEGIN
52
MCFOLD
void
$dtor();
53
// NOLINTEND
54
};
55
56
public
:
57
// member variables
58
// NOLINTBEGIN
59
::ll::TypedStorage<
60
8,
61
40,
62
::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>>
63
mScriptItem;
64
::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>> mPlayer;
65
// NOLINTEND
66
67
public
:
68
// prevent constructor by default
69
ScriptItemCustomComponentUseEvent
& operator=(
ScriptItemCustomComponentUseEvent
const
&);
70
ScriptItemCustomComponentUseEvent
();
71
72
public
:
73
// virtual functions
74
// NOLINTBEGIN
75
// vIndex: 0
76
virtual
~ScriptItemCustomComponentUseEvent
()
/*override*/
;
77
// NOLINTEND
78
79
public
:
80
// member functions
81
// NOLINTBEGIN
82
MCAPI
ScriptItemCustomComponentUseEvent
(
::ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent
const
&);
83
84
MCAPI
ScriptItemCustomComponentUseEvent
(
85
::ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent::IntermediateStorage
const
& eventData,
86
::Scripting::WeakLifetimeScope
const
& scope
87
);
88
// NOLINTEND
89
90
public
:
91
// static functions
92
// NOLINTBEGIN
93
MCAPI static ::Scripting::ClassBinding bind();
94
// NOLINTEND
95
96
public
:
97
// constructor thunks
98
// NOLINTBEGIN
99
MCAPI
void
* $ctor(
::ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent
const
&);
100
101
MCAPI
void
* $ctor(
102
::ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent::IntermediateStorage
const
& eventData,
103
::Scripting::WeakLifetimeScope
const
& scope
104
);
105
// NOLINTEND
106
107
public
:
108
// destructor thunk
109
// NOLINTBEGIN
110
MCAPI
void
$dtor();
111
// NOLINTEND
112
113
public
:
114
// vftables
115
// NOLINTBEGIN
116
MCNAPI
static
void
**
$vftable
();
117
// NOLINTEND
118
};
119
120
}
// namespace ScriptModuleMinecraft
ItemStack
Definition
ItemStack.h:23
Player
Definition
Player.h:123
Scripting::WeakLifetimeScope
Definition
WeakLifetimeScope.h:7
ScriptModuleMinecraft::ScriptCustomComponentPubSubConnectors
Definition
ScriptCustomComponentPubSubConnectors.h:8
ScriptModuleMinecraft::ScriptItemCustomComponentAfterEvent
Definition
ScriptItemCustomComponentAfterEvent.h:17
ScriptModuleMinecraft::ScriptItemCustomComponentIntermediateStorage
Definition
ScriptItemCustomComponentIntermediateStorage.h:17
ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent::IntermediateStorage
Definition
ScriptItemCustomComponentUseEvent.h:35
ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent
Definition
ScriptItemCustomComponentUseEvent.h:24
ScriptModuleMinecraft::ScriptItemCustomComponentUseEvent::$vftable
static MCAPI void ** $vftable()
src-server
mc
scripting
modules
minecraft
events
ScriptItemCustomComponentUseEvent.h
Generated on Sun Oct 12 2025 06:32:03 for LeviLamina by
1.12.0