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

Method elementHovered

Minecraft-Utils/1.8/src/FileSelector.java:413–424  ·  view source on GitHub ↗
(int id, int mouseX, int mouseY)

Source from the content-addressed store, hash-verified

411 }
412
413 protected void elementHovered(int id, int mouseX, int mouseY) {
414 File file = getFile(id);
415 if (file == null)
416 return;
417 String name = file.getName();
418 if (currentDir == null) {
419 name = fsv.getSystemDisplayName(file);
420 }
421 if (MinecraftFactory.getVars().getStringWidth(name) > selectionBoxWidth - 18 - MinecraftFactory.getVars().getStringWidth("...")) {
422 MinecraftFactory.getVars().getCurrentScreen().drawHoveringText(MinecraftFactory.getVars().splitStringToWidth(name, 200), mouseX, mouseY);
423 }
424 }
425
426 @Override
427 public File getCurrentDir() {

Callers 1

drawMethod · 0.95

Calls 7

getFileMethod · 0.95
getVarsMethod · 0.95
getStringWidthMethod · 0.65
drawHoveringTextMethod · 0.65
getCurrentScreenMethod · 0.65
splitStringToWidthMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected