mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
added sources for Slick
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package org.newdawn.slick.util;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* A location from which resources can be loaded
|
||||
*
|
||||
* @author kevin
|
||||
*/
|
||||
public interface ResourceLocation {
|
||||
|
||||
/**
|
||||
* Get a resource as an input stream
|
||||
*
|
||||
* @param ref The reference to the resource to retrieve
|
||||
* @return A stream from which the resource can be read or
|
||||
* null if the resource can't be found in this location
|
||||
*/
|
||||
public InputStream getResourceAsStream(String ref);
|
||||
|
||||
/**
|
||||
* Get a resource as a URL
|
||||
*
|
||||
* @param ref The reference to the resource to retrieve
|
||||
* @return A URL from which the resource can be read
|
||||
*/
|
||||
public URL getResource(String ref);
|
||||
}
|
||||
Reference in New Issue
Block a user