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;
14class ExpressionNode;
16namespace Json { class Value; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ExpressionNode>> mExpressionTags;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
30
31 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
32
33 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
34
35 virtual ::std::string getFullName() const /*override*/;
36
37 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
38
39 virtual ::std::optional<::CompoundTag> save() const /*override*/;
40
41 virtual void serialize(::Json::Value& val) const /*override*/;
42
43 virtual void serialize(::BinaryStream& stream) const /*override*/;
44
45 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
46
47 virtual uint64 getHash() const /*override*/;
48
49 virtual ~MolangDescriptor() /*override*/ = default;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static ::Bedrock::Result<::std::unique_ptr<::MolangDescriptor>> deserialize(::ReadOnlyBinaryStream& stream);
56
57 MCAPI static ::std::unique_ptr<::MolangDescriptor>
58 fromExpressionTag(::std::string const& tagExpression, ::MolangVersion molangVersion);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
65
66 MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
67
68 MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
69
70 MCAPI ::std::string $getFullName() const;
71
72 MCAPI ::std::map<::std::string, ::std::string> $toMap() const;
73
74 MCAPI ::std::optional<::CompoundTag> $save() const;
75
76 MCAPI void $serialize(::Json::Value& val) const;
77
78 MCAPI void $serialize(::BinaryStream& stream) const;
79
80 MCFOLD ::ItemDescriptor::InternalType $getType() const;
81
82 MCAPI uint64 $getHash() const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BinaryStream.h:11
Definition CompoundTag.h:23
Definition ExpressionNode.h:33
Definition Value.h:16
Definition ReadOnlyBinaryStream.h:8
Definition ItemDescriptor.h:56
Definition ItemDescriptor.h:41
Definition MolangDescriptor.h:19
static MCAPI void ** $vftable()