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