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