31class HumanoidArmorItem :
public ::Item {
39 enum class Tier :
int {
55 ::ll::TypedStorage<4, 4, int> mDurabilityMultiplier;
56 ::ll::TypedStorage<4, 16, int[4]> mSlotProtections;
57 ::ll::TypedStorage<4, 4, int> mToughnessValue;
58 ::ll::TypedStorage<4, 4, int> mEnchantmentValue;
59 ::ll::TypedStorage<4, 4, float> mKnockbackResistance;
66 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ArmorSlot const> mSlot;
67 ::ll::TypedStorage<4, 4, int const> mDefense;
68 ::ll::TypedStorage<4, 4, int const> mModelIndex;
69 ::ll::TypedStorage<8, 8, ::HumanoidArmorItem::ArmorMaterial const&> mArmorType;
70 ::ll::TypedStorage<1, 1, bool> mCurrentVersionAllowsTrim;
75 HumanoidArmorItem& operator=(HumanoidArmorItem
const&);
76 HumanoidArmorItem(HumanoidArmorItem
const&);
82 virtual bool isHumanoidArmor() const ;
84 virtual
bool isValidRepairItem(
90 virtual
int getEnchantSlot() const ;
92 virtual
int getEnchantValue() const ;
94 virtual
int getArmorValue() const ;
96 virtual
int getToughnessValue() const ;
98 virtual
float getKnockbackResistanceValue() const ;
100 virtual
bool hasCustomColor(::
CompoundTag const* userData) const ;
106 virtual
void setColor(::
ItemStackBase& item, ::mce::Color const& color) const ;
108 virtual
bool isDyeable() const ;
110 virtual
bool isTrimAllowed() const ;
112 virtual ::SharedTypes::Legacy::ActorLocation getEquipLocation() const ;
114 virtual ::SharedTypes::Legacy::LevelSoundEvent getEquipSound() const ;
116 virtual
int getDamageChance(
int unbreaking) const ;
121 virtual
void appendFormattedHovertext(
124 ::Bedrock::Safety::RedactableString& hovertext,
125 bool const showCategory
128 virtual
void hurtActor(::
ItemStack& item, ::
Actor& actor, ::
Mob& attacker) const ;
131 getIconInfo(::
ItemStackBase const& item,
int newAnimationFrame,
bool inInventoryPane) const ;
135 virtual
int buildIdAux(
short auxValue, ::
CompoundTag const* userData) const ;
137 virtual ~HumanoidArmorItem() = default;
143 MCAPI ::
std::
string _buildAttributeText() const;
151 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& CHAIN();
153 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& COPPER();
155 MCAPI static ::mce::Color& DEFAULT_LEATHER_COLOR();
157 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& DIAMOND();
159 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& ELYTRA();
161 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& GOLD();
163 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& IRON();
165 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& LEATHER();
167 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& NETHERITE();
169 MCAPI static ::HumanoidArmorItem::
ArmorMaterial const& TURTLE();
175 MCFOLD
bool $isHumanoidArmor() const;
177 MCAPI
bool $isValidRepairItem(
183 MCAPI
int $getEnchantSlot() const;
185 MCAPI
int $getEnchantValue() const;
187 MCFOLD
int $getArmorValue() const;
189 MCAPI
int $getToughnessValue() const;
191 MCAPI
float $getKnockbackResistanceValue() const;
193 MCAPI
bool $hasCustomColor(::
CompoundTag const* userData) const;
199 MCFOLD
void $setColor(::
ItemStackBase& item, ::mce::Color const& color) const;
201 MCAPI
bool $isDyeable() const;
203 MCAPI
bool $isTrimAllowed() const;
205 MCAPI ::SharedTypes::Legacy::ActorLocation $getEquipLocation() const;
207 MCAPI ::SharedTypes::Legacy::LevelSoundEvent $getEquipSound() const;
209 MCAPI
int $getDamageChance(
int unbreaking) const;
213 MCAPI
void $appendFormattedHovertext(
216 ::Bedrock::Safety::RedactableString& hovertext,
217 bool const showCategory
220 MCFOLD
void $hurtActor(::
ItemStack& item, ::
Actor& actor, ::
Mob& attacker) const;
223 $getIconInfo(::
ItemStackBase const& item,
int newAnimationFrame,
bool inInventoryPane) const;
227 MCAPI
int $buildIdAux(
short auxValue, ::
CompoundTag const* userData) const;
235 MCAPI static
void** $vftable();