Interface ResourceProvider
- All Known Subinterfaces:
CloseableResourceManager,ResourceManager
- All Known Implementing Classes:
FallbackResourceManager,GameRenderer.ResourceCache,MultiPackResourceManager,ReloadableResourceManager,ResourceManager.Empty
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceProviderfromMap(Map<ResourceLocation, Resource> resources) getResource(ResourceLocation location) default ResourcegetResourceOrThrow(ResourceLocation location) default InputStreamopen(ResourceLocation location) default BufferedReaderopenAsReader(ResourceLocation location)
-
Field Details
-
EMPTY
-
-
Method Details
-
getResource
-
getResourceOrThrow
- Throws:
FileNotFoundException
-
open
- Throws:
IOException
-
openAsReader
- Throws:
IOException
-
fromMap
-