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