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 TypeMethodDescriptionorg.bukkit.NamespacedKey
This returns the armor setNamespacedKey
of thisSlimefunArmorPiece
.boolean
This returns whether the full set is required forPlayer
's protection on assignedProtectionType
damages.Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
-
Method Details
-
getProtectionTypes
- Returns:
- The
ProtectionType
s.
-
isFullSetRequired
boolean isFullSetRequired()This returns whether the full set is required forPlayer
's protection on assignedProtectionType
damages.- Returns:
- Whether or not he full set is required.
-
getArmorSetId
@Nullable org.bukkit.NamespacedKey getArmorSetId()This returns the armor setNamespacedKey
of thisSlimefunArmorPiece
.- Returns:
- The set
NamespacedKey
,null
if none is found.
-