|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.tools.resourceloader.ResourceLoader
public class ResourceLoader
A simple wrapper around resource loading should anyone decide to change their minds how this is meant to work in the future.
Constructor Summary | |
---|---|
ResourceLoader()
|
Method Summary | |
---|---|
static void |
addResourceLocation(ResourceLocation location)
Add a location that will be searched for resources |
static URL |
getResource(String ref)
Get a resource as a URL |
static InputStream |
getResourceAsStream(String ref)
Get a resource |
static void |
removeAllResourceLocations()
Remove all the locations, no resources will be found until new locations have been added |
static void |
removeResourceLocation(ResourceLocation location)
Remove a location that will be no longer be searched for resources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceLoader()
Method Detail |
---|
public static void addResourceLocation(ResourceLocation location)
location
- The location that will be searched for resorucespublic static void removeResourceLocation(ResourceLocation location)
location
- The location that will be removed from the search listpublic static void removeAllResourceLocations()
public static InputStream getResourceAsStream(String ref)
ref
- The reference to the resource to retrieve
public static URL getResource(String ref)
ref
- The reference to the resource to retrieve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |