Package com.djrapitops.plan.storage.file
Class SpongePlanFiles
- java.lang.Object
-
- com.djrapitops.plan.storage.file.PlanFiles
-
- com.djrapitops.plan.storage.file.SpongePlanFiles
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.storage.file.PlanFiles
getResourceStream
-
-
Constructor Summary
Constructors Constructor Description SpongePlanFiles(java.io.File dataFolder, JarResource.StreamFunction getResourceStream, PlanPlugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
getResourceFromJar(java.lang.String resourceName)
Get a file in the jar as aResource
.-
Methods inherited from class com.djrapitops.plan.storage.file.PlanFiles
attemptToFind, disable, enable, getConfigFile, getCustomizableResource, getCustomizationDirectory, getDataDirectory, getDataFolder, getFileFromPluginFolder, getJSONStorageDirectory, getLocaleFile, getLogsDirectory, getLogsFolder, getResourceFromPluginFolder
-
-
-
-
Constructor Detail
-
SpongePlanFiles
@Inject public SpongePlanFiles(@Named("dataFolder") java.io.File dataFolder, JarResource.StreamFunction getResourceStream, PlanPlugin plugin)
-
-
Method Detail
-
getResourceFromJar
public Resource getResourceFromJar(java.lang.String resourceName)
Description copied from class:PlanFiles
Get a file in the jar as aResource
.- Overrides:
getResourceFromJar
in classPlanFiles
- Parameters:
resourceName
- Path to the file inside jar/assets/plan/ folder.- Returns:
- a
Resource
for accessing the resource.
-
-