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&);
81 std::string
const& nameId,
83 SharedTypes::Legacy::ArmorSlot
const slot,
92 mModelIndex(modelIndex),
93 mArmorType(armorType),
94 mCurrentVersionAllowsTrim(allowTrim) {}
99 virtual bool isHumanoidArmor() const ;
101 virtual
bool isValidRepairItem(
107 virtual
int getEnchantSlot() const ;
109 virtual
int getEnchantValue() const ;
111 virtual
int getArmorValue() const ;
113 virtual
int getToughnessValue() const ;
115 virtual
float getKnockbackResistanceValue() const ;
117 virtual
bool hasCustomColor(::
CompoundTag const* userData) const ;
123 virtual
void setColor(::
ItemStackBase& item, ::mce::Color const& color) const ;
125 virtual
bool isDyeable() const ;
127 virtual
bool isTrimAllowed() const ;
129 virtual ::SharedTypes::Legacy::ActorLocation getEquipLocation() const ;
131 virtual ::SharedTypes::Legacy::LevelSoundEvent getEquipSound() const ;
133 virtual
int getDamageChance(
int unbreaking) const ;
138 virtual
void appendFormattedHovertext(
141 ::Bedrock::Safety::RedactableString& hovertext,
142 bool const showCategory
145 virtual
void hurtActor(::
ItemStack& item, ::
Actor& actor, ::
Mob& attacker) const ;
148 getIconInfo(::
ItemStackBase const& item,
int newAnimationFrame,
bool inInventoryPane) const ;
152 virtual
int buildIdAux(
short auxValue, ::
CompoundTag const* userData) const ;
159 MCAPI ::ItemInstance getTierItem()
const;
166 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& CHAIN();
168 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& COPPER();
170 MCAPI static ::mce::Color& DEFAULT_LEATHER_COLOR();
172 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& DIAMOND();
174 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& ELYTRA();
176 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& GOLD();
178 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& IRON();
180 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& LEATHER();
182 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& NETHERITE();
184 MCAPI static ::HumanoidArmorItem::ArmorMaterial
const& TURTLE();
190 MCFOLD
bool $isHumanoidArmor()
const;
192 MCAPI
bool $isValidRepairItem(
198 MCAPI
int $getEnchantSlot()
const;
200 MCAPI
int $getEnchantValue()
const;
202 MCAPI
int $getArmorValue()
const;
204 MCAPI
int $getToughnessValue()
const;
206 MCAPI
float $getKnockbackResistanceValue()
const;
208 MCAPI
bool $hasCustomColor(
::CompoundTag const* userData)
const;
216 MCAPI
bool $isDyeable()
const;
218 MCAPI
bool $isTrimAllowed()
const;
220 MCAPI ::SharedTypes::Legacy::ActorLocation $getEquipLocation()
const;
222 MCAPI ::SharedTypes::Legacy::LevelSoundEvent $getEquipSound()
const;
224 MCAPI
int $getDamageChance(
int unbreaking)
const;
228 MCFOLD
void $appendFormattedHovertext(
232 bool const showCategory
237 MCAPI ::ResolvedItemIconInfo
238 $getIconInfo(
::ItemStackBase const& item,
int newAnimationFrame,
bool inInventoryPane)
const;
242 MCAPI
int $buildIdAux(
short auxValue,
::CompoundTag const* userData)
const;
250 MCAPI
static void** $vftable();