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