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 ResourceProvider
fromMap
(Map<ResourceLocation, Resource> pResources) getResource
(ResourceLocation pLocation) default Resource
getResourceOrThrow
(ResourceLocation pLocation) default InputStream
open
(ResourceLocation pLocation) default BufferedReader
openAsReader
(ResourceLocation pLocation)
-
Field Details
-
EMPTY
-
-
Method Details
-
getResource
-
getResourceOrThrow
- Throws:
FileNotFoundException
-
open
- Throws:
IOException
-
openAsReader
- Throws:
IOException
-
fromMap
-