MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / drawSlot

Method drawSlot

Minecraft-Utils/1.8.9/src/FileSelector.java:237–246  ·  view source on GitHub ↗
(int id, int x, int y, int padding, int mouseX, int mouseY)

Source from the content-addressed store, hash-verified

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

Callers 1

drawSelectionBoxMethod · 0.95

Calls 5

getFileMethod · 0.95
getVarsMethod · 0.95
drawStringMethod · 0.65
shortenToWidthMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected