Skip to content
LeviMC
English
AutoLightDark
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 id) /*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 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI RecordItem(
42 ::std::string const& name,
43 int id,
45 ::SharedTypes::Legacy::LevelSoundEvent soundEvent
46 );
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCNAPI void* $ctor(
53 ::std::string const& name,
54 int id,
56 ::SharedTypes::Legacy::LevelSoundEvent soundEvent
57 );
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCNAPI ::std::string
64 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
65
66 MCNAPI ::Item& $setIconInfo(::std::string const& name, int id);
67
68 MCNAPI ::ResolvedItemIconInfo
69 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
70
71 MCNAPI ::RecordItem& $setDescriptionId(::std::string const& descriptionId);
72
73
74 // NOLINTEND
75};
Definition CompoundTag.h:18
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition Item.h:73
MCAPI::std::string $buildDescriptionId(::ItemDescriptor const &itemDescriptor, ::CompoundTag const *userData) const
MCAPI RecordItem(::std::string const &name, int id, ::cereal::ReflectionCtx &ctx, ::SharedTypes::Legacy::LevelSoundEvent soundEvent)
MCAPI::Item & $setIconInfo(::std::string const &name, int id)
MCAPI::RecordItem & $setDescriptionId(::std::string const &descriptionId)
MCAPI::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const &item, int newAnimationFrame, bool inInventoryPane) const
MCAPI void * $ctor(::std::string const &name, int id, ::cereal::ReflectionCtx &ctx, ::SharedTypes::Legacy::LevelSoundEvent soundEvent)
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5