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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceProvider
fromMap
(Map<ResourceLocation, Resource> p_251819_) getResource
(ResourceLocation p_215592_) default Resource
getResourceOrThrow
(ResourceLocation p_215594_) default InputStream
open
(ResourceLocation p_215596_) default BufferedReader
openAsReader
(ResourceLocation p_215598_)
-
Method Details
-
getResource
-
getResourceOrThrow
- Throws:
FileNotFoundException
-
open
- Throws:
IOException
-
openAsReader
- Throws:
IOException
-
fromMap
-