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

Method FileSelector

Minecraft-Utils/1.10/src/FileSelector.java:43–54  ·  view source on GitHub ↗
(File currentDir, int width, int height, int left, int right, int top, int bottom, Callback<File> callback)

Source from the content-addressed store, hash-verified

41 private long lastClicked;
42
43 public FileSelector(File currentDir, int width, int height, int left, int right, int top, int bottom, Callback<File> callback) {
44 updateDir(currentDir);
45 this.width = width;
46 this.height = height;
47 this.left = left;
48 this.right = right;
49 this.top = top;
50 this.bottom = bottom;
51 this.callback = callback;
52
53 columnCount = (int) Math.floor((double) (right - left) / (double) selectionBoxWidth);
54 }
55
56 @Override
57 public void goUp() {

Callers

nothing calls this directly

Calls 1

updateDirMethod · 0.95

Tested by

no test coverage detected