Sort assets by name in AssetManager and ObjectManager
This commit is contained in:
@@ -15,6 +15,7 @@ public interface ReplayAsset<T> extends GuiEntryListEntry {
|
||||
|
||||
void drawToScreen(int x, int y, int maxWidth, int maxHeight);
|
||||
|
||||
String getAssetName();
|
||||
void setAssetName(String name);
|
||||
|
||||
ReplayAsset<T> copy();
|
||||
|
||||
@@ -40,6 +40,11 @@ public class ReplayImageAsset implements ReplayAsset<BufferedImage> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAssetName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAssetName(String name) {
|
||||
this.name = name;
|
||||
|
||||
Reference in New Issue
Block a user