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
18struct ComplexAliasDescriptor : public ::ItemDescriptor::BaseDescriptor {
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
28 ComplexAliasDescriptor();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
34
35 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
36
37 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
38
39 virtual bool forEachItemUntil(::std::function<bool(::Item const&, short)> func) const /*override*/;
40
41 virtual ::std::string getFullName() const /*override*/;
42
43 virtual ::ItemDescriptor::ItemEntry getItem() const /*override*/;
44
45 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
46
47 virtual ::std::optional<::CompoundTag> save() 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 ~ComplexAliasDescriptor() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI explicit ComplexAliasDescriptor(::std::string const& fullName);
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static ::Bedrock::Result<::std::unique_ptr<::ComplexAliasDescriptor>>
68 deserialize(::ReadOnlyBinaryStream& stream);
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(::std::string const& fullName);
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
81
82 MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
83
84 MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
85
86 MCAPI bool $forEachItemUntil(::std::function<bool(::Item const&, short)> func) const;
87
88 MCFOLD ::std::string $getFullName() const;
89
90 MCAPI ::ItemDescriptor::ItemEntry $getItem() const;
91
92 MCAPI ::std::map<::std::string, ::std::string> $toMap() const;
93
94 MCAPI ::std::optional<::CompoundTag> $save() const;
95
96 MCAPI void $serialize(::BinaryStream& stream) const;
97
98 MCFOLD ::ItemDescriptor::InternalType $getType() const;
99
100 MCFOLD uint64 $getHash() const;
101
102
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCAPI static void** $vftable();
109 // NOLINTEND
110};
Definition BinaryStream.h:11
Definition CompoundTag.h:23
Definition Item.h:69
Definition ReadOnlyBinaryStream.h:8
Definition ItemDescriptor.h:56
static MCAPI void ** $vftable()
Definition ItemDescriptor.h:41