LeviLamina
Loading...
Searching...
No Matches
RecordItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/item/components/ComponentItem.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class Item;
13class ItemDescriptor;
14class ItemStackBase;
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class RecordItem : public ::ComponentItem {
20public:
21 // prevent constructor by default
22 RecordItem();
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ::std::string
28 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
29
30 virtual ::Item& setIconInfo(::std::string const& name, int index) /*override*/;
31
32 virtual ::ResolvedItemIconInfo
33 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
34
35 virtual ::RecordItem& setDescriptionId(::std::string const& descriptionId) /*override*/;
36
37 virtual ~RecordItem() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI RecordItem(
44 ::std::string const& name,
45 int id,
47 ::SharedTypes::Legacy::LevelSoundEvent soundEvent
48 );
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor(
55 ::std::string const& name,
56 int id,
58 ::SharedTypes::Legacy::LevelSoundEvent soundEvent
59 );
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI ::std::string
66 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
67
68 MCFOLD ::Item& $setIconInfo(::std::string const& name, int index);
69
70 MCFOLD ::ResolvedItemIconInfo
71 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
72
73 MCFOLD ::RecordItem& $setDescriptionId(::std::string const& descriptionId);
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCAPI static void** $vftable();
82 // NOLINTEND
83};
static MCAPI void ** $vftable()
Definition CompoundTag.h:23
Definition ItemDescriptor.h:23
Definition ItemStackBase.h:44
Definition Item.h:69
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5