Skip to content
LeviMC
English
AutoLightDark
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 BlockSource;
11class CompoundTag;
12class Container;
13class ItemDescriptor;
14class ItemStackBase;
15class Level;
16class Vec3;
17namespace Bedrock::Safety { class RedactableString; }
18namespace mce { class Color; }
19// clang-format on
20
21class HorseArmorItem : public ::Item {
22public:
23 // HorseArmorItem inner types define
24 enum class Tier : int {
25 None = 0,
26 Leather = 1,
27 Iron = 2,
28 Gold = 3,
29 Diamond = 4,
30 Copper = 5,
31 Netherite = 6,
32 Count = 7,
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<4, 4, int const> mDefense;
39 ::ll::TypedStorage<4, 4, ::HorseArmorItem::Tier> mTier;
40 // NOLINTEND
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual bool isBodyArmor() const /*override*/;
46
47 virtual int getArmorValue() const /*override*/;
48
49 virtual int getToughnessValue() const /*override*/;
50
51 virtual float getKnockbackResistanceValue() const /*override*/;
52
53 virtual bool hasCustomColor(::CompoundTag const* userData) const /*override*/;
54
55 virtual ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const /*override*/;
56
57 virtual void clearColor(::ItemStackBase& item) const /*override*/;
58
59 virtual void setColor(::ItemStackBase& item, ::mce::Color const& color) const /*override*/;
60
61 virtual bool isDyeable() const /*override*/;
62
63 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
64 /*override*/;
65
66 virtual void appendFormattedHovertext(
67 ::ItemStackBase const& stack,
68 ::Level& level,
70 bool const showCategory
71 ) const /*override*/;
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCNAPI bool $isBodyArmor() const;
78
79 MCNAPI int $getArmorValue() const;
80
81 MCNAPI int $getToughnessValue() const;
82
83 MCNAPI float $getKnockbackResistanceValue() const;
84
85 MCNAPI bool $hasCustomColor(::CompoundTag const* userData) const;
86
87 MCNAPI ::mce::Color $getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
88
89 MCNAPI void $clearColor(::ItemStackBase& item) const;
90
91 MCNAPI void $setColor(::ItemStackBase& item, ::mce::Color const& color) const;
92
93 MCNAPI bool $isDyeable() const;
94
95 MCNAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
96
98 ::ItemStackBase const& stack,
99 ::Level& level,
101 bool const showCategory
102 ) const;
103
104
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition RedactableString.h:10
Definition BlockSource.h:72
Definition CompoundTag.h:18
Definition Container.h:36
Definition HorseArmorItem.h:21
MCAPI bool $isDyeable() const
MCAPI bool $hasCustomColor(::CompoundTag const *userData) const
static MCAPI void ** $vftable()
MCAPI bool $dispense(::BlockSource &region, ::Container &container, int slot, ::Vec3 const &pos, uchar) const
MCAPI void $clearColor(::ItemStackBase &item) const
MCAPI float $getKnockbackResistanceValue() const
MCAPI::mce::Color $getColor(::CompoundTag const *userData, ::ItemDescriptor const &) const
MCAPI void $setColor(::ItemStackBase &item, ::mce::Color const &color) const
MCAPI bool $isBodyArmor() const
MCAPI int $getToughnessValue() const
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const showCategory) const
MCAPI int $getArmorValue() const
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition Level.h:255
Definition Vec3.h:10
Definition Color.h:13