Interface ProtectiveArmor

All Superinterfaces:
ItemAttribute
All Known Implementing Classes:
ElytraCap, HazmatArmorPiece

public interface ProtectiveArmor extends ItemAttribute
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 Details

    • getProtectionTypes

      @Nonnull ProtectionType[] getProtectionTypes()
      This returns which ProtectionType damages this ItemAttribute will protect the Player from.
      Returns:
      The ProtectionTypes.
    • isFullSetRequired

      boolean isFullSetRequired()
      This returns whether the full set is required for Player's protection on assigned ProtectionType damages.
      Returns:
      Whether or not he full set is required.
    • getArmorSetId

      @Nullable org.bukkit.NamespacedKey getArmorSetId()
      This returns the armor set NamespacedKey of this SlimefunArmorPiece.
      Returns:
      The set NamespacedKey, null if none is found.