public class ClasspathLocation extends Object implements ResourceLocation
Constructor and Description |
---|
ClasspathLocation() |
Modifier and Type | Method and Description |
---|---|
URL |
getResource(String ref)
Get a resource as a URL
|
InputStream |
getResourceAsStream(String ref)
Get a resource as an input stream
|
public URL getResource(String ref)
ResourceLocation
getResource
in interface ResourceLocation
ref
- The reference to the resource to retrieveorg.newdawn.slick.util.ResourceLocation#getResource(java.lang.String)
public InputStream getResourceAsStream(String ref)
ResourceLocation
getResourceAsStream
in interface ResourceLocation
ref
- The reference to the resource to retrieveorg.newdawn.slick.util.ResourceLocation#getResourceAsStream(java.lang.String)
Copyright © 2013. All Rights Reserved.