public class NiftyResourceLoader extends Object
Constructor and Description |
---|
NiftyResourceLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addResourceLocation(ResourceLocation location)
Add a location that will be searched for resources
|
URL |
getResource(String ref)
Get a resource as a URL
|
InputStream |
getResourceAsStream(String ref)
Get a resource
|
void |
removeAllResourceLocations()
Remove all the locations, no resources will be found until new locations
have been added
|
void |
removeResourceLocation(ResourceLocation location)
Remove a location that will be no longer be searched for resources
|
public void addResourceLocation(ResourceLocation location)
location
- The location that will be searched for resorucespublic void removeResourceLocation(ResourceLocation location)
location
- The location that will be removed from the search listpublic void removeAllResourceLocations()
public InputStream getResourceAsStream(String ref)
ref
- The reference to the resource to retrieveCopyright © 2013. All Rights Reserved.