Rename method to avoid conflicts with IInventory method
This commit is contained in:
		| @@ -76,7 +76,7 @@ public class GuiStorage extends GuiBase { | ||||
|  | ||||
|     @Override | ||||
|     public void drawForeground(int mouseX, int mouseY) { | ||||
|         drawString(7, 7, t(gui.getName())); | ||||
|         drawString(7, 7, t(gui.getGuiTitle())); | ||||
|         drawString(7, 42, gui.getCapacity() == -1 ? t("misc.refinedstorage:storage.stored_minimal", gui.getStored()) : t("misc.refinedstorage:storage.stored_capacity_minimal", gui.getStored(), gui.getCapacity())); | ||||
|         drawString(97, 42, t("misc.refinedstorage:priority")); | ||||
|         drawString(7, 117, t("container.inventory")); | ||||
|   | ||||
| @@ -6,7 +6,7 @@ import refinedstorage.tile.config.IModeConfig; | ||||
| import refinedstorage.tile.config.IRedstoneModeConfig; | ||||
|  | ||||
| public interface IStorageGui { | ||||
|     String getName(); | ||||
|     String getGuiTitle(); | ||||
|  | ||||
|     int getPriority(); | ||||
|  | ||||
|   | ||||
| @@ -143,7 +143,7 @@ public class TileDiskDrive extends TileMachine implements IStorageProvider, ISto | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getName() { | ||||
|     public String getGuiTitle() { | ||||
|         return "block.refinedstorage:disk_drive.name"; | ||||
|     } | ||||
|  | ||||
| @@ -299,6 +299,11 @@ public class TileDiskDrive extends TileMachine implements IStorageProvider, ISto | ||||
|         return inventory.getDisplayName(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getName() { | ||||
|         return inventory.getName(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public IInventory getDroppedInventory() { | ||||
|         return inventory; | ||||
|   | ||||
| @@ -289,7 +289,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getName() { | ||||
|     public String getGuiTitle() { | ||||
|         return "gui.refinedstorage:external_storage"; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -179,7 +179,7 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getName() { | ||||
|     public String getGuiTitle() { | ||||
|         return "block.refinedstorage:storage." + getType().getId() + ".name"; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Raoul Van den Berge
					Raoul Van den Berge