Interface ProtectiveArmor
- All Superinterfaces:
ItemAttribute
- All Known Implementing Classes:
ElytraCap,HazmatArmorPiece
Implement this interface to a
SlimefunArmorPiece to protect
the Player who wears that SlimefunArmorPiece from
ProtectionType damage.
Important: You need to specify which ProtectionType damages
to protect the Player from.- Author:
- Linox
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThis returns the armor setNamespacedKeyof thisSlimefunArmorPiece.booleanThis returns whether the full set is required forPlayer's protection on assignedProtectionTypedamages.Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
-
Method Details
-
getProtectionTypes
- Returns:
- The
ProtectionTypes.
-
isFullSetRequired
boolean isFullSetRequired()This returns whether the full set is required forPlayer's protection on assignedProtectionTypedamages.- Returns:
- Whether or not he full set is required.
-
getArmorSetId
This returns the armor setNamespacedKeyof thisSlimefunArmorPiece.- Returns:
- The set
NamespacedKey,nullif none is found.
-