LeviLamina
Loading...
Searching...
No Matches
DeferredDescriptor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/WeakPtr.h"
7#include "mc/platform/Result.h"
8#include "mc/world/item/ItemDescriptor.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
13class BlockType;
14class CompoundTag;
15class Item;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 32, ::std::string> mFullName;
24 ::ll::TypedStorage<2, 2, short> mAuxValue;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 0
31 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
32
33 // vIndex: 2
34 virtual bool sameItem(::ItemDescriptor::ItemEntry const&, bool) const /*override*/;
35
36 // vIndex: 3
37 virtual ::std::string getFullName() const /*override*/;
38
39 // vIndex: 7
40 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
41
42 // vIndex: 8
43 virtual ::std::optional<::CompoundTag> save() const /*override*/;
44
45 // vIndex: 9
46 virtual void serialize(::BinaryStream& stream) const /*override*/;
47
48 // vIndex: 11
49 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
50
51 // vIndex: 13
52 virtual uint64 getHash() const /*override*/;
53
54 // vIndex: 14
55 virtual bool shouldResolve() const /*override*/;
56
57 // vIndex: 15
58 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> resolve() const /*override*/;
59
60 // vIndex: 16
61 virtual ~DeferredDescriptor() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor>
68 _initFromBlockType(::BlockType const& block, ::WeakPtr<::Item>&& item) const;
69
70 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> _initFromItem(::WeakPtr<::Item>&& item, short aux) const;
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCAPI static ::Bedrock::Result<::std::unique_ptr<::DeferredDescriptor>> deserialize(::ReadOnlyBinaryStream& stream);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
83
84 MCFOLD bool $sameItem(::ItemDescriptor::ItemEntry const&, bool) const;
85
86 MCFOLD ::std::string $getFullName() const;
87
88 MCAPI ::std::map<::std::string, ::std::string> $toMap() const;
89
90 MCAPI ::std::optional<::CompoundTag> $save() const;
91
92 MCAPI void $serialize(::BinaryStream& stream) const;
93
94 MCFOLD ::ItemDescriptor::InternalType $getType() const;
95
96 MCFOLD uint64 $getHash() const;
97
98 MCFOLD bool $shouldResolve() const;
99
100 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $resolve() const;
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftable();
107 // NOLINTEND
108};
Definition BinaryStream.h:10
Definition BlockType.h:84
Definition CompoundTag.h:13
Definition Item.h:66
Definition ReadOnlyBinaryStream.h:8
Definition WeakPtr.h:10
Definition DeferredDescriptor.h:19
static MCAPI void ** $vftable()
Definition ItemDescriptor.h:55
Definition ItemDescriptor.h:31
Definition serialize.h:11