LeviLamina
Loading...
Searching...
No Matches
HorseArmorItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockSource;
12class CompoundTag;
13class Container;
14class ItemDescriptor;
15class ItemStack;
16class ItemStackBase;
17class Level;
18class Vec3;
19namespace Bedrock::Safety { class RedactableString; }
20namespace mce { class Color; }
21// clang-format on
22
23class HorseArmorItem : public ::Item {
24public:
25 // HorseArmorItem inner types define
26 enum class Tier : int {
27 None = 0,
28 Leather = 1,
29 Iron = 2,
30 Gold = 3,
31 Diamond = 4,
32 Count = 5,
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<4, 4, int const> mDefense;
39 ::ll::TypedStorage<4, 4, int const> mModelIndex;
40 ::ll::TypedStorage<4, 4, ::HorseArmorItem::Tier> mTier;
41 // NOLINTEND
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 56
47 virtual int getArmorValue() const /*override*/;
48
49 // vIndex: 67
50 virtual bool hasCustomColor(::CompoundTag const* userData) const /*override*/;
51
52 // vIndex: 66
53 virtual ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const /*override*/;
54
55 // vIndex: 69
56 virtual void clearColor(::ItemStackBase& item) const /*override*/;
57
58 // vIndex: 70
59 virtual void setColor(::ItemStackBase& item, ::mce::Color const& color) const /*override*/;
60
61 // vIndex: 15
62 virtual bool isDyeable() const /*override*/;
63
64 // vIndex: 78
65 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
66 /*override*/;
67
68 // vIndex: 52
69 virtual void appendFormattedHovertext(
70 ::ItemStackBase const& stack,
71 ::Level& level,
73 bool const showCategory
74 ) const /*override*/;
75
76 // vIndex: 0
77 virtual ~HorseArmorItem() /*override*/ = default;
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCAPI static bool _tryEquipHorseArmor(::Actor* actor, ::ItemStack const& horseArmor);
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCAPI static ::mce::Color& DEFAULT_HORSE_LEATHER_COLOR();
90
91 MCAPI static ::std::add_lvalue_reference_t<int const[]> mHealthPerTier();
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI int $getArmorValue() const;
104
105 MCAPI bool $hasCustomColor(::CompoundTag const* userData) const;
106
107 MCAPI ::mce::Color $getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
108
109 MCFOLD void $clearColor(::ItemStackBase& item) const;
110
111 MCFOLD void $setColor(::ItemStackBase& item, ::mce::Color const& color) const;
112
113 MCAPI bool $isDyeable() const;
114
115 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
116
117 MCAPI void $appendFormattedHovertext(
118 ::ItemStackBase const& stack,
119 ::Level& level,
121 bool const showCategory
122 ) const;
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCAPI static void** $vftable();
129 // NOLINTEND
130};
Definition Actor.h:104
Definition RedactableString.h:10
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition Container.h:30
Definition HorseArmorItem.h:23
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:234
Definition Vec3.h:10
Definition Color.h:13