LeviLamina
Loading...
Searching...
No Matches
ScriptPlayerInventoryItemChangeAfterEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/scripting/modules/minecraft/items/ScriptPlayerInventoryType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Player;
12namespace ScriptModuleMinecraft { class ScriptItemStack; }
13namespace ScriptModuleMinecraft { class ScriptPlayer; }
14namespace Scripting { class WeakLifetimeScope; }
15namespace Scripting { struct ClassBinding; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
20struct ScriptPlayerInventoryItemChangeAfterEvent {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>
25 mPlayerHandle;
26 ::ll::TypedStorage<
27 8,
28 40,
29 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>>
30 mBeforeItemStack;
31 ::ll::TypedStorage<
32 8,
33 40,
34 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>>
35 mAfterItemStack;
36 ::ll::TypedStorage<4, 4, ::ScriptModuleMinecraft::ScriptPlayerInventoryType> mplayerInventoryType;
37 ::ll::TypedStorage<4, 4, int> mSlotNumber;
38 ::ll::TypedStorage<1, 1, bool> mIsQuantityChangedOnly;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 ScriptPlayerInventoryItemChangeAfterEvent& operator=(ScriptPlayerInventoryItemChangeAfterEvent const&);
44 ScriptPlayerInventoryItemChangeAfterEvent();
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ScriptPlayerInventoryItemChangeAfterEvent(
51 );
52
53 MCAPI ScriptPlayerInventoryItemChangeAfterEvent(
54 ::Player const& player,
57 ::ScriptModuleMinecraft::ScriptPlayerInventoryType playerInventoryType,
58 int slotNumber,
59 bool isQuantityChanged,
61 );
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static ::Scripting::ClassBinding bind();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
74
75 MCAPI void* $ctor(
76 ::Player const& player,
79 ::ScriptModuleMinecraft::ScriptPlayerInventoryType playerInventoryType,
80 int slotNumber,
81 bool isQuantityChanged,
83 );
84 // NOLINTEND
85};
86
87} // namespace ScriptModuleMinecraft
Definition Player.h:137
Definition ScriptItemStack.h:32
Definition ScriptPlayer.h:56
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition ScriptPlayerInventoryItemChangeAfterEvent.h:20
Definition ClassBinding.h:19