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