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