#DataComponentTypes.EQUIPPABLE does not exist in Fabric 1.21.1

5 messages · Page 1 of 1 (latest)

ocean remnant
#

I want to check whether an ItemStack is a chestplate in Fabric (1.21.1), but I noticed that DataComponentTypes.EQUIPPABLE does not exist. Is it because this API only exists in 1.21.2 and later? If so, how can I achieve the same functionality in 1.21.1?

bold ore
#

probably need to do an instanceof ArmorItem or something along those lines

#

the equippable component didnt exist in 1.21.1

ocean remnant
bold ore
#

that should be fine, its basically the equivalent of checking the slot on the equippable component