2021-08-27 06:07:15 +02:00
|
|
|
package speiger.src.coreengine.assets;
|
|
|
|
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
import java.io.BufferedReader;
|
|
|
|
import java.io.Closeable;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
|
|
import com.google.gson.JsonObject;
|
|
|
|
|
|
|
|
public interface IAsset extends Closeable
|
|
|
|
{
|
|
|
|
public AssetLocation getLocation();
|
|
|
|
|
2021-08-30 04:01:16 +02:00
|
|
|
public IAsset subAsset(String alternative);
|
|
|
|
|
2021-08-27 06:07:15 +02:00
|
|
|
public InputStream getStream() throws IOException;
|
|
|
|
|
|
|
|
public BufferedImage getTexture() throws Exception;
|
|
|
|
|
|
|
|
public BufferedReader getStringReader() throws IOException;
|
|
|
|
|
|
|
|
public JsonObject getJsonObject() throws IOException;
|
|
|
|
}
|