LeviLamina
Loading...
Searching...
No Matches
ScriptItemCustomComponentUseOnEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/ecs/WeakEntityRef.h"
8#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
9#include "mc/scripting/modules/minecraft/events/ScriptCustomComponentPubSubConnectors.h"
10#include "mc/scripting/modules/minecraft/events/ScriptItemCustomComponentAfterEvent.h"
11#include "mc/scripting/modules/minecraft/events/ScriptItemCustomComponentIntermediateStorage.h"
12#include "mc/scripting/modules/minecraft/events/ScriptItemUseOnEvent.h"
13#include "mc/world/item/ItemStack.h"
14#include "mc/world/level/BlockPos.h"
15
16// auto generated forward declare list
17// clang-format off
18class Actor;
19class Block;
20class BlockSource;
21namespace ScriptModuleMinecraft { class ScriptActor; }
22namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
23namespace Scripting { class WeakLifetimeScope; }
24namespace Scripting { struct ClassBinding; }
25// clang-format on
26
27namespace ScriptModuleMinecraft {
28
29struct ScriptItemCustomComponentUseOnEvent : public ::ScriptModuleMinecraft::ScriptItemCustomComponentAfterEvent,
31public:
32 // ScriptItemCustomComponentUseOnEvent inner types declare
33 // clang-format off
35 // clang-format on
36
37 // ScriptItemCustomComponentUseOnEvent inner types define
39 public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<8, 152, ::ItemStack const> mItemStack;
43 ::ll::TypedStorage<8, 24, ::WeakEntityRef const> mEntity;
44 ::ll::TypedStorage<8, 8, ::Block const&> mBlock;
45 ::ll::TypedStorage<8, 8, ::BlockSource&> mRegion;
46 ::ll::TypedStorage<4, 12, ::BlockPos const> mBlockPos;
47 ::ll::TypedStorage<1, 1, uchar const> mFace;
48 ::ll::TypedStorage<4, 12, ::Vec3 const> mFaceLocation;
49 // NOLINTEND
50
51 public:
52 // prevent constructor by default
53 IntermediateStorage& operator=(IntermediateStorage const&);
54 IntermediateStorage(IntermediateStorage const&);
55 IntermediateStorage();
56
57 public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI IntermediateStorage(
61 bool& result,
62 ::ItemStack const& initialItemStack,
64 ::Actor& actor,
65 ::BlockPos location,
66 uchar face,
67 ::Vec3 clickPos
68 );
69
70 MCAPI ~IntermediateStorage();
71 // NOLINTEND
72
73 public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(
77 bool& result,
78 ::ItemStack const& initialItemStack,
80 ::Actor& actor,
81 ::BlockPos location,
82 uchar face,
83 ::Vec3 clickPos
84 );
85 // NOLINTEND
86
87 public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCFOLD void $dtor();
91 // NOLINTEND
92 };
93
95 void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&)>;
96
97public:
98 // member variables
99 // NOLINTBEGIN
100 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>> mEntity;
101 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation>>
102 mUsedBlockPermutation;
103 // NOLINTEND
104
105public:
106 // prevent constructor by default
107 ScriptItemCustomComponentUseOnEvent& operator=(ScriptItemCustomComponentUseOnEvent const&);
108 ScriptItemCustomComponentUseOnEvent();
109
110public:
111 // virtual functions
112 // NOLINTBEGIN
113 virtual ~ScriptItemCustomComponentUseOnEvent() /*override*/;
114 // NOLINTEND
115
116public:
117 // member functions
118 // NOLINTBEGIN
119 MCAPI ScriptItemCustomComponentUseOnEvent(::ScriptModuleMinecraft::ScriptItemCustomComponentUseOnEvent&&);
120
121 MCAPI ScriptItemCustomComponentUseOnEvent(::ScriptModuleMinecraft::ScriptItemCustomComponentUseOnEvent const&);
122
123 MCAPI ScriptItemCustomComponentUseOnEvent(
126 );
127
128 MCAPI ::ScriptModuleMinecraft::ScriptItemCustomComponentUseOnEvent&
130 // NOLINTEND
131
132public:
133 // static functions
134 // NOLINTBEGIN
135 MCAPI static ::Scripting::ClassBinding bind();
136 // NOLINTEND
137
138public:
139 // constructor thunks
140 // NOLINTBEGIN
142
144
145 MCAPI void* $ctor(
148 );
149 // NOLINTEND
150
151public:
152 // destructor thunk
153 // NOLINTBEGIN
154 MCAPI void $dtor();
155 // NOLINTEND
156
157public:
158 // vftables
159 // NOLINTBEGIN
160 MCNAPI static void** $vftable();
161 // NOLINTEND
162};
163
164} // namespace ScriptModuleMinecraft
Definition Actor.h:105
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition ItemStack.h:26
Definition ScriptActor.h:65
Definition ScriptBlockPermutation.h:23
Definition WeakLifetimeScope.h:7
Definition Vec3.h:10
Definition ScriptCustomComponentPubSubConnectors.h:8
Definition ScriptItemCustomComponentAfterEvent.h:17
Definition ScriptItemCustomComponentIntermediateStorage.h:17
Definition ScriptItemCustomComponentUseOnEvent.h:30
Definition ScriptItemUseOnEvent.h:22
Definition ClassBinding.h:19