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 // vIndex: 0
30 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
31
32 // vIndex: 1
33 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
34
35 // vIndex: 2
36 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
37
38 // vIndex: 3
39 virtual ::std::string getFullName() const /*override*/;
40
41 // vIndex: 7
42 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
43
44 // vIndex: 8
45 virtual ::std::optional<::CompoundTag> save() const /*override*/;
46
47 // vIndex: 10
48 virtual void serialize(::Json::Value& val) const /*override*/;
49
50 // vIndex: 9
51 virtual void serialize(::BinaryStream& stream) const /*override*/;
52
53 // vIndex: 11
54 virtual ::ItemDescriptor::InternalType getType() const /*override*/;
55
56 // vIndex: 13
57 virtual uint64 getHash() const /*override*/;
58
59 // vIndex: 16
60 virtual ~MolangDescriptor() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCNAPI static ::Bedrock::Result<::std::unique_ptr<::MolangDescriptor>> deserialize(::ReadOnlyBinaryStream& stream);
67
68 MCNAPI static ::std::unique_ptr<::MolangDescriptor>
69 fromExpressionTag(::std::string const& tagExpression, ::MolangVersion molangVersion);
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCNAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
76
77 MCNAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
78
79 MCNAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
80
81 MCNAPI ::std::string $getFullName() const;
82
83 MCNAPI ::std::map<::std::string, ::std::string> $toMap() const;
84
85 MCNAPI ::std::optional<::CompoundTag> $save() const;
86
87 MCNAPI void $serialize(::Json::Value& val) const;
88
89 MCNAPI void $serialize(::BinaryStream& stream) const;
90
91 MCNAPI ::ItemDescriptor::InternalType $getType() const;
92
93 MCNAPI uint64 $getHash() const;
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
Definition BinaryStream.h:10
Definition CompoundTag.h:13
Definition ExpressionNode.h:27
Definition Value.h:16
Definition ReadOnlyBinaryStream.h:8
Definition ItemDescriptor.h:55
Definition ItemDescriptor.h:31
Definition MolangDescriptor.h:19
static MCAPI ::std::unique_ptr<::MolangDescriptor > fromExpressionTag(::std::string const &tagExpression, ::MolangVersion molangVersion)
MCAPI void $serialize(::Json::Value &val) const
MCAPI void $serialize(::BinaryStream &stream) const
MCAPI::ItemDescriptor::InternalType $getType() const
MCAPI ::std::map<::std::string, ::std::string > $toMap() const
MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const &otherItem, bool) const
MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor > $clone() const
MCAPI uint64 $getHash() const
MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const &otherDescriptor, bool compareAux) const
static MCAPI void ** $vftable()
MCAPI ::std::optional<::CompoundTag > $save() const
MCAPI::std::string $getFullName() const
static MCAPI ::Bedrock::Result<::std::unique_ptr<::MolangDescriptor > > deserialize(::ReadOnlyBinaryStream &stream)
Definition serialize.h:11