Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemTagDescriptor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/function_ref.h"
7#include "mc/world/item/ItemDescriptor.h"
8#include "mc/world/item/ItemTag.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
13class CompoundTag;
14class Item;
15namespace Json { class Value; }
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 48, ::ItemTag> mItemTag;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> clone() const /*override*/;
29
30 virtual bool sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const /*override*/;
31
32 virtual bool sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const /*override*/;
33
34 virtual bool forEachItemUntil(::brstd::function_ref<bool(::Item const&, short)> func) const /*override*/;
35
36 virtual ::std::string getFullName() const /*override*/;
37
38 virtual ::std::string toString() const /*override*/;
39
40 virtual ::ItemDescriptor::ItemEntry getItem() const /*override*/;
41
42 virtual ::std::map<::std::string, ::std::string> toMap() const /*override*/;
43
44 virtual ::std::optional<::CompoundTag> save() const /*override*/;
45
46 virtual void serialize(::Json::Value& val) 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 // virtual function thunks
57 // NOLINTBEGIN
58 MCNAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor> $clone() const;
59
60 MCNAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const& otherDescriptor, bool compareAux) const;
61
62 MCNAPI bool $sameItem(::ItemDescriptor::ItemEntry const& otherItem, bool) const;
63
64 MCNAPI bool $forEachItemUntil(::brstd::function_ref<bool(::Item const&, short)> func) const;
65
66 MCNAPI ::std::string $getFullName() const;
67
68 MCNAPI ::std::string $toString() const;
69
70 MCNAPI ::ItemDescriptor::ItemEntry $getItem() const;
71
72 MCNAPI ::std::map<::std::string, ::std::string> $toMap() const;
73
74 MCNAPI ::std::optional<::CompoundTag> $save() const;
75
76 MCNAPI void $serialize(::Json::Value& val) const;
77
78 MCNAPI void $serialize(::BinaryStream& stream) const;
79
80 MCNAPI ::ItemDescriptor::InternalType $getType() const;
81
82 MCNAPI uint64 $getHash() const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BinaryStream.h:10
Definition CompoundTag.h:18
Definition Item.h:73
Definition Value.h:16
Definition function_ref.h:60
Definition ItemDescriptor.h:51
Definition ItemDescriptor.h:42
Definition ItemTagDescriptor.h:18
MCAPI bool $sameItems(::ItemDescriptor::BaseDescriptor const &otherDescriptor, bool compareAux) const
MCAPI::ItemDescriptor::ItemEntry $getItem() const
MCAPI::std::string $toString() const
MCAPI bool $forEachItemUntil(::brstd::function_ref< bool(::Item const &, short)> func) const
MCAPI ::std::map<::std::string, ::std::string > $toMap() const
MCAPI::std::string $getFullName() const
MCAPI uint64 $getHash() const
MCAPI void $serialize(::Json::Value &val) const
static MCAPI void ** $vftable()
MCAPI ::std::unique_ptr<::ItemDescriptor::BaseDescriptor > $clone() const
MCAPI void $serialize(::BinaryStream &stream) const
MCAPI ::std::optional<::CompoundTag > $save() const
MCAPI bool $sameItem(::ItemDescriptor::ItemEntry const &otherItem, bool) const
MCAPI::ItemDescriptor::InternalType $getType() const