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

Method FileSelector

Minecraft-Utils/1.13/src/FileSelector.java:42–53  ·  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

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

Callers

nothing calls this directly

Calls 1

updateDirMethod · 0.95

Tested by

no test coverage detected