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 Copper = 5,
33 Count = 6,
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<4, 4, int const> mDefense;
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: 80
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 // virtual function thunks
88 // NOLINTBEGIN
89 MCAPI int $getArmorValue() const;
90
91 MCAPI bool $hasCustomColor(::CompoundTag const* userData) const;
92
93 MCAPI ::mce::Color $getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
94
95 MCFOLD void $clearColor(::ItemStackBase& item) const;
96
97 MCFOLD void $setColor(::ItemStackBase& item, ::mce::Color const& color) const;
98
99 MCAPI bool $isDyeable() const;
100
101 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
102
103 MCAPI void $appendFormattedHovertext(
104 ::ItemStackBase const& stack,
105 ::Level& level,
107 bool const showCategory
108 ) const;
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
Definition Actor.h:102
Definition RedactableString.h:10
Definition BlockSource.h:66
Definition CompoundTag.h:13
Definition Container.h:31
Definition HorseArmorItem.h:23
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:34
Definition ItemStack.h:23
Definition Item.h:66
Definition Level.h:243
Definition Vec3.h:10
Definition Color.h:13