Skip to content
LeviMC
English
AutoLightDark
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/brstd/function_ref.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;
15// clang-format on
16
17struct ComplexAliasDescriptor : public ::ItemDescriptor::BaseDescriptor {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 48, ::HashedString> mFullName;
22 ::ll::TypedStorage<8, 16, ::ItemDescriptor::ItemEntry> mDefaultItem;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 ComplexAliasDescriptor();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
33
34 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
35
36 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
37
38 virtual bool forEachItemUntil(::brstd::function_ref<bool(::Item const&, short)> func) const /*override*/;
39
40 virtual ::std::string getFullName() 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(::BinaryStream& stream) const /*override*/;
49
50 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
51
52 virtual uint64 getHash() const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCNAPI explicit ComplexAliasDescriptor(::std::string const& fullName);
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCNAPI void* $ctor(::std::string const& fullName);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCNAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
71
72 MCNAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
73
74 MCNAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
75
76 MCNAPI bool $forEachItemUntil(::brstd::function_ref<bool(::Item const&, short)> func) const;
77
78 MCNAPI ::std::string $getFullName() const;
79
80 MCNAPI ::ItemDescriptor::ItemEntry $getItem() const;
81
82 MCNAPI ::std::map<::std::string, ::std::string> $toMap() const;
83
84 MCNAPI ::std::optional<::CompoundTag> $save() const;
85
86 MCNAPI void $serialize(::BinaryStream& stream) const;
87
88 MCNAPI ::ItemDescriptor::InternalType $getType() const;
89
90 MCNAPI uint64 $getHash() const;
91
92
93 // NOLINTEND
94};
Definition BinaryStream.h:10
Definition CompoundTag.h:18
Definition Item.h:73
Definition function_ref.h:60
MCAPI ::std::map<::std::string, ::std::string > $toMap() const
MCAPI::std::string $getFullName() const
MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const &otherItem, bool) const
MCAPI uint64 $getHash() const
MCAPI::ItemDescriptor::InternalType $getType() const
MCAPI::ItemDescriptor::ItemEntry $getItem() const
MCAPI void $serialize(::BinaryStream &stream) const
MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor > $clone() const
MCAPI bool $forEachItemUntil(::brstd::function_ref< bool(::Item const &, short)> func) const
MCAPI void * $ctor(::std::string const &fullName)
MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const &otherDescriptor, bool compareAux) const
MCAPI ::std::optional<::CompoundTag > $save() const
MCAPI ComplexAliasDescriptor(::std::string const &fullName)
Definition ItemDescriptor.h:51
Definition ItemDescriptor.h:42