LeviLamina
Loading...
Searching...
No Matches
ItemTagDescriptor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7#include "mc/world/item/ItemDescriptor.h"
8#include "mc/world/item/ItemTag.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
13class CompoundTag;
14class Item;
16namespace Json { class Value; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 48, ::ItemTag> mItemTag;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
31
32 // vIndex: 1
33 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
34
35 // vIndex: 2
36 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
37
38 // vIndex: 6
39 virtual bool forEachItemUntil(::std::function<bool(::Item const&, short)> func) const /*override*/;
40
41 // vIndex: 3
42 virtual ::std::string getFullName() const /*override*/;
43
44 // vIndex: 4
45 virtual ::std::string toString() const /*override*/;
46
47 // vIndex: 5
48 virtual ::ItemDescriptor::ItemEntry getItem() const /*override*/;
49
50 // vIndex: 7
51 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
52
53 // vIndex: 8
54 virtual ::std::optional<::CompoundTag> save() const /*override*/;
55
56 // vIndex: 10
57 virtual void serialize(::Json::Value& val) const /*override*/;
58
59 // vIndex: 9
60 virtual void serialize(::BinaryStream& stream) const /*override*/;
61
62 // vIndex: 11
63 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
64
65 // vIndex: 13
66 virtual uint64 getHash() const /*override*/;
67
68 // vIndex: 16
69 virtual ~ItemTagDescriptor() /*override*/ = default;
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static ::Bedrock::Result<::std::unique_ptr<::ItemTagDescriptor>> deserialize(::ReadOnlyBinaryStream& stream);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
82
83 MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
84
85 MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
86
87 MCAPI bool $forEachItemUntil(::std::function<bool(::Item const&, short)> func) const;
88
89 MCFOLD ::std::string $getFullName() const;
90
91 MCAPI ::std::string $toString() const;
92
93 MCFOLD ::ItemDescriptor::ItemEntry $getItem() const;
94
95 MCAPI ::std::map<::std::string, ::std::string> $toMap() const;
96
97 MCAPI ::std::optional<::CompoundTag> $save() const;
98
99 MCAPI void $serialize(::Json::Value& val) const;
100
101 MCAPI void $serialize(::BinaryStream& stream) const;
102
103 MCFOLD ::ItemDescriptor::InternalType $getType() const;
104
105 MCAPI uint64 $getHash() const;
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
Definition BinaryStream.h:10
Definition CompoundTag.h:13
Definition Item.h:66
Definition Value.h:16
Definition ReadOnlyBinaryStream.h:8
Definition ItemDescriptor.h:55
Definition ItemDescriptor.h:31
Definition ItemTagDescriptor.h:19
static MCAPI void ** $vftable()
Definition serialize.h:11