Skip to content
LeviMC
English
AutoLightDark
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/script_core/lifetime_registry/scripting/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/HandSlot.h"
12#include "mc/world/item/ItemStack.h"
13
14// auto generated forward declare list
15// clang-format off
16class Player;
17struct ItemOnUseResult;
18namespace ScriptModuleMinecraft { class ScriptItemStack; }
19namespace ScriptModuleMinecraft { class ScriptPlayer; }
20namespace Scripting { struct ClassBinding; }
21// clang-format on
22
23namespace ScriptModuleMinecraft {
24
26public:
27 // ScriptItemCustomComponentUseEvent inner types declare
28 // clang-format off
30 // clang-format on
31
32 // ScriptItemCustomComponentUseEvent inner types define
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 152, ::ItemStack const> mItemStack;
38 ::ll::TypedStorage<8, 24, ::WeakEntityRef const> mPlayer;
39 ::ll::TypedStorage<1, 1, ::HandSlot const> mHandSlot;
40 // NOLINTEND
41 };
42
44 void(::ItemOnUseResult&, ::ItemStack&, ::Player&, ::HandSlot)>;
45
46public:
47 // member variables
48 // NOLINTBEGIN
49 ::ll::TypedStorage<
50 8,
51 40,
52 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>>
53 mScriptItem;
54 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>> mPlayer;
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCNAPI static ::Scripting::ClassBinding bind();
61 // NOLINTEND
62};
63
64} // namespace ScriptModuleMinecraft
Definition ItemStack.h:26
Definition Player.h:131
Definition ScriptItemStack.h:30
Definition ScriptPlayer.h:42
Definition ItemOnUseResult.h:5
Definition ScriptCustomComponentPubSubConnectors.h:8
Definition ScriptItemCustomComponentAfterEvent.h:17
Definition ScriptItemCustomComponentIntermediateStorage.h:17
Definition ScriptItemCustomComponentUseEvent.h:25
static MCAPI ::Scripting::ClassBinding bind()
Definition ClassBinding.h:10