In package com.eden.orchid.api.resources.resourcesource

class com.eden.orchid.api.resources.resourcesource.OrchidResourceSource

OrchidResourceSource define the resource lookup order. Resources are looked up in the following order:

  1. Local sources
  2. The currently active theme
  3. Plugin sources

This makes it so that any resource defined in a plugin or theme can always be overridden by your local resoure sources. Likewise, any resource defined in a plugin can be overridden by the theme.

Fields

abstract priority: Int

Methods

abstract fun getResourceEntry(fileName: String): OrchidResource?
Parameters:
  • fileName: String
abstract fun getResourceEntries(dirName: String, fileExtensions: Array?, recursive: Boolean): List
Parameters:
  • dirName: String
  • fileExtensions: Array?
  • recursive: Boolean
open fun shouldAddEntry(entryName: String): Boolean
Parameters:
  • entryName: String
open fun compareTo(other: OrchidResourceSource): Int
Parameters: