Interface EquipmentSlot

    • Method Detail

      • isValidItem

        boolean isValidItem​(EquipmentType type)
        Check whether the supplied equipment type can be inserted into this slot. Returning false from this method implies that Inventory.offer(org.spongepowered.api.item.inventory.ItemStack...) would always return false for items of this type.
        type - EquipmentType to check
        true if the specified EquipmentType is valid for this slot