LeviLamina
Loading...
Searching...
No Matches
CommandItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class CommandOutput;
8class ItemInstance;
9// clang-format on
10
11class CommandItem {
12public:
13 // member variables
14 // NOLINTBEGIN
15 union {
16 struct {
17 ::ll::TypedStorage<2, 2, short> mVersion;
18 ::ll::TypedStorage<1, 1, bool> mOverrideAux;
19 ::ll::TypedStorage<4, 4, int> mId;
20 };
21 ::ll::TypedStorage<8, 8, uint64> mVersionId;
22 };
23 // NOLINTEND
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI CommandItem();
29
30 MCAPI explicit CommandItem(uint64 versionId);
31
32 MCAPI CommandItem(int id, short version, bool overrideAux);
33
34#ifdef LL_PLAT_C
35 MCAPI ::ItemInstance createInstance(int count) const;
36#endif
37
38 MCAPI ::std::optional<::ItemInstance>
39 createInstance(int count, int aux, ::CommandOutput& output, bool requireExactAux) const;
40
41 MCFOLD int getId() const;
42
43 MCAPI explicit operator bool() const;
44
45 MCAPI explicit operator uint64() const;
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor();
52
53 MCFOLD void* $ctor(uint64 versionId);
54
55 MCAPI void* $ctor(int id, short version, bool overrideAux);
56 // NOLINTEND
57};
Definition CommandOutput.h:20
Definition ItemInstance.h:15