Skip to content

Commit

Permalink
Rename method to avoid conflicts with IInventory method
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Apr 3, 2016
1 parent a925301 commit ebfbd55
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/refinedstorage/gui/GuiStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void drawBackground(int x, int y, int mouseX, int mouseY) {

@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"));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/refinedstorage/storage/IStorageGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import refinedstorage.tile.config.IRedstoneModeConfig;

public interface IStorageGui {
String getName();
String getGuiTitle();

int getPriority();

Expand Down
7 changes: 6 additions & 1 deletion src/main/java/refinedstorage/tile/TileDiskDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void setToBlacklist() {
}

@Override
public String getName() {
public String getGuiTitle() {
return "block.refinedstorage:disk_drive.name";
}

Expand Down Expand Up @@ -299,6 +299,11 @@ public ITextComponent getDisplayName() {
return inventory.getDisplayName();
}

@Override
public String getName() {
return inventory.getName();
}

@Override
public IInventory getDroppedInventory() {
return inventory;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/refinedstorage/tile/TileExternalStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void provide(List<IStorage> storages) {
}

@Override
public String getName() {
public String getGuiTitle() {
return "gui.refinedstorage:external_storage";
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/refinedstorage/tile/TileStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void setToBlacklist() {
}

@Override
public String getName() {
public String getGuiTitle() {
return "block.refinedstorage:storage." + getType().getId() + ".name";
}

Expand Down

0 comments on commit ebfbd55

Please sign in to comment.