(int id, int x, int y, int padding, int mouseX, int mouseY)
| 234 | } |
| 235 | |
| 236 | protected void drawSlot(int id, int x, int y, int padding, int mouseX, int mouseY) { |
| 237 | File file = getFile(id); |
| 238 | if (file == null) |
| 239 | return; |
| 240 | String name = file.getName(); |
| 241 | if (currentDir == null) { |
| 242 | name = fsv.getSystemDisplayName(file); |
| 243 | } |
| 244 | MinecraftFactory.getVars().drawString(MinecraftFactory.getVars().shortenToWidth(name, selectionBoxWidth - 18), x + 2, y + 2); |
| 245 | } |
| 246 | |
| 247 | public boolean isSelected(int id) { |
| 248 | return selectedFile == id; |
no test coverage detected