Package org.spongepowered.plugin
Interface ResourceQueryable
-
- All Known Subinterfaces:
PluginContainer
,PluginResource
- All Known Implementing Classes:
JVMPluginContainer
,JVMPluginResource
public interface ResourceQueryable
Represents an entity that can be queried forresources
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Optional<URI>
locateResource(URI relative)
Resolves the location of a bundled resource, given a relativeURI
.default Optional<InputStream>
openResource(URI relative)
Opens anInputStream
of the location of a bundled resource, given a relativeURI
.
-
-
-
Method Detail
-
locateResource
Optional<URI> locateResource(URI relative)
Resolves the location of a bundled resource, given a relativeURI
.- Parameters:
relative
- The relative URI- Returns:
- The resolved resource location, if available
-
openResource
default Optional<InputStream> openResource(URI relative)
Opens anInputStream
of the location of a bundled resource, given a relativeURI
.- Parameters:
relative
- The relative URI- Returns:
- The opened resource, if available
-
-