Class SpongePlanFiles

  • All Implemented Interfaces:
    SubSystem

    @Singleton
    public class SpongePlanFiles
    extends PlanFiles
    Implements jar resource fetching with Sponge Asset API.
    • Method Detail

      • getResourceFromJar

        public Resource getResourceFromJar​(java.lang.String resourceName)
        Description copied from class: PlanFiles
        Get a file in the jar as a Resource.
        Overrides:
        getResourceFromJar in class PlanFiles
        Parameters:
        resourceName - Path to the file inside jar/assets/plan/ folder.
        Returns:
        a Resource for accessing the resource.