Skip to content
LeviMC
English
AutoLightDark
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/script_core/lifetime_registry/scripting/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/HandSlot.h"
14#include "mc/world/item/ItemStack.h"
15#include "mc/world/level/BlockPos.h"
16
17// auto generated forward declare list
18// clang-format off
19class Actor;
20class Block;
21class BlockSource;
22namespace ScriptModuleMinecraft { class ScriptActor; }
23namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
24namespace Scripting { struct ClassBinding; }
25// clang-format on
26
27namespace ScriptModuleMinecraft {
28
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 ::ll::TypedStorage<1, 1, ::HandSlot const> mHandSlot;
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 IntermediateStorage& operator=(IntermediateStorage const&);
55 IntermediateStorage(IntermediateStorage const&);
56 IntermediateStorage();
57 };
58
60 void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&, ::HandSlot)>;
61
62public:
63 // member variables
64 // NOLINTBEGIN
65 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>> mEntity;
66 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation>>
67 mUsedBlockPermutation;
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCNAPI static ::Scripting::ClassBinding bind();
74 // NOLINTEND
75};
76
77} // namespace ScriptModuleMinecraft
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition ItemStack.h:26
Definition ScriptActor.h:64
Definition ScriptBlockPermutation.h:22
Definition Vec3.h:10
Definition ScriptCustomComponentPubSubConnectors.h:8
Definition ScriptItemCustomComponentAfterEvent.h:17
Definition ScriptItemCustomComponentIntermediateStorage.h:17
Definition ScriptItemCustomComponentUseOnEvent.h:30
static MCAPI ::Scripting::ClassBinding bind()
Definition ScriptItemUseOnEvent.h:22
Definition ClassBinding.h:10