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 MCNAPI static ::Bedrock::Result<::std::unique_ptr<::ItemTagDescriptor>> deserialize(::ReadOnlyBinaryStream& stream);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
84
85 MCNAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
86
87 MCNAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
88
89 MCNAPI bool $forEachItemUntil(::std::function<bool(::Item const&, short)> func) const;
90
91 MCNAPI ::std::string $toString() const;
92
93 MCNAPI ::ItemDescriptor::ItemEntry $getItem() const;
94
95 MCNAPI ::std::map<::std::string, ::std::string> $toMap() const;
96
97 MCNAPI ::std::optional<::CompoundTag> $save() const;
98
99 MCNAPI void $serialize(::Json::Value& val) const;
100
101 MCNAPI void $serialize(::BinaryStream& stream) const;
102
103 MCNAPI ::ItemDescriptor::InternalType $getType() const;
104
105 MCNAPI 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:65
Definition Value.h:16
Definition ReadOnlyBinaryStream.h:8
Definition ItemDescriptor.h:55
Definition ItemDescriptor.h:31
Definition ItemTagDescriptor.h:18
MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const &otherDescriptor, bool compareAux) const
MCAPI bool $forEachItemUntil(::std::function< bool(::Item const &, short)> func) const
MCAPI::ItemDescriptor::ItemEntry $getItem() const
MCAPI::std::string $toString() const
MCAPI ::std::map<::std::string, ::std::string > $toMap() const
MCAPI uint64 $getHash() const
MCAPI void $serialize(::Json::Value &val) const
static MCAPI void ** $vftable()
MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor > $clone() const
static MCAPI ::Bedrock::Result<::std::unique_ptr<::ItemTagDescriptor > > deserialize(::ReadOnlyBinaryStream &stream)
MCAPI void $serialize(::BinaryStream &stream) const
MCAPI ::std::optional<::CompoundTag > $save() const
MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const &otherItem, bool) const
MCAPI::ItemDescriptor::InternalType $getType() const
Definition Alias.h:14
Definition serialize.h:11