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

Method drawSlot

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

Source from the content-addressed store, hash-verified

253 }
254
255 protected void drawSlot(int id, int x, int y, int padding, int mouseX, int mouseY) {
256 File file = getFile(id);
257 if (file == null)
258 return;
259 String name = file.getName();
260 if (currentDir == null) {
261 name = fsv.getSystemDisplayName(file);
262 }
263 MinecraftFactory.getVars().drawString(MinecraftFactory.getVars().shortenToWidth(name, selectionBoxWidth - 18), x + 2, y + 2);
264 }
265
266 public boolean isSelected(int id) {
267 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