LeviLamina
Loading...
Searching...
No Matches
ComplexAliasDescriptor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.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 CompoundTag;
14class Item;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 48, ::HashedString> mFullName;
23 ::ll::TypedStorage<8, 16, ::ItemDescriptor::ItemEntry> mDefaultItem;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 0
34 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
35
36 // vIndex: 1
37 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
38
39 // vIndex: 2
40 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
41
42 // vIndex: 6
43 virtual bool forEachItemUntil(::std::function<bool(::Item const&, short)> func) const /*override*/;
44
45 // vIndex: 3
46 virtual ::std::string getFullName() const /*override*/;
47
48 // vIndex: 5
49 virtual ::ItemDescriptor::ItemEntry getItem() const /*override*/;
50
51 // vIndex: 7
52 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
53
54 // vIndex: 8
55 virtual ::std::optional<::CompoundTag> save() const /*override*/;
56
57 // vIndex: 9
58 virtual void serialize(::BinaryStream& stream) const /*override*/;
59
60 // vIndex: 11
61 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
62
63 // vIndex: 13
64 virtual uint64 getHash() const /*override*/;
65
66 // vIndex: 16
67 virtual ~ComplexAliasDescriptor() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI explicit ComplexAliasDescriptor(::std::string const& fullName);
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCAPI static ::Bedrock::Result<::std::unique_ptr<::ComplexAliasDescriptor>>
80 deserialize(::ReadOnlyBinaryStream& stream);
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(::std::string const& fullName);
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
93
94 MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
95
96 MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
97
98 MCAPI bool $forEachItemUntil(::std::function<bool(::Item const&, short)> func) const;
99
100 MCFOLD ::std::string $getFullName() const;
101
102 MCAPI ::ItemDescriptor::ItemEntry $getItem() const;
103
104 MCAPI ::std::map<::std::string, ::std::string> $toMap() const;
105
106 MCAPI ::std::optional<::CompoundTag> $save() const;
107
108 MCAPI void $serialize(::BinaryStream& stream) const;
109
110 MCFOLD ::ItemDescriptor::InternalType $getType() const;
111
112 MCFOLD uint64 $getHash() const;
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
Definition BinaryStream.h:10
Definition CompoundTag.h:13
Definition Item.h:66
Definition ReadOnlyBinaryStream.h:8
Definition ComplexAliasDescriptor.h:18
static MCAPI void ** $vftable()
Definition ItemDescriptor.h:55
Definition ItemDescriptor.h:31
Definition serialize.h:11