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: 4
42 virtual ::std::string toString() const /*override*/;
43
44 // vIndex: 5
45 virtual ::ItemDescriptor::ItemEntry getItem() const /*override*/;
46
47 // vIndex: 7
48 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
49
50 // vIndex: 8
51 virtual ::std::optional<::CompoundTag> save() const /*override*/;
52
53 // vIndex: 10
54 virtual void serialize(::Json::Value& val) const /*override*/;
55
56 // vIndex: 9
57 virtual void serialize(::BinaryStream& stream) const /*override*/;
58
59 // vIndex: 11
60 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
61
62 // vIndex: 13
63 virtual uint64 getHash() const /*override*/;
64
65 // vIndex: 16
66 virtual ~ItemTagDescriptor() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // static functions
71 // NOLINTBEGIN
72 MCAPI static ::Bedrock::Result<::std::unique_ptr<::ItemTagDescriptor>> deserialize(::ReadOnlyBinaryStream& stream);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
79
80 MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
81
82 MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
83
84 MCAPI bool $forEachItemUntil(::std::function<bool(::Item const&, short)> func) const;
85
86 MCAPI ::std::string $toString() const;
87
88 MCFOLD ::ItemDescriptor::ItemEntry $getItem() const;
89
90 MCAPI ::std::map<::std::string, ::std::string> $toMap() const;
91
92 MCAPI ::std::optional<::CompoundTag> $save() const;
93
94 MCAPI void $serialize(::Json::Value& val) const;
95
96 MCAPI void $serialize(::BinaryStream& stream) const;
97
98 MCFOLD ::ItemDescriptor::InternalType $getType() const;
99
100 MCAPI uint64 $getHash() const;
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftable();
107 // NOLINTEND
108};
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