MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / UIWindow

Method UIWindow

src/main/java/com/volmit/adapt/util/UIWindow.java:55–65  ·  view source on GitHub ↗
(Player viewer)

Source from the content-addressed store, hash-verified

53 private boolean doubleclicked;
54
55 public UIWindow(Player viewer) {
56 clickcheck = 0;
57 doubleclicked = false;
58 this.viewer = viewer;
59 this.elements = new HashMap<>();
60 setTitle("");
61 setDecorator(new UIVoidDecorator());
62 setResolution(WindowResolution.W9_H6);
63 setViewportHeight(clip(3, 1, getResolution().getMaxHeight()).intValue());
64 setViewportPosition(0);
65 }
66
67 @EventHandler(priority = EventPriority.HIGHEST)
68 public void on(InventoryClickEvent e) {

Callers

nothing calls this directly

Calls 8

setTitleMethod · 0.95
setDecoratorMethod · 0.95
setResolutionMethod · 0.95
setViewportHeightMethod · 0.95
clipMethod · 0.95
getResolutionMethod · 0.95
setViewportPositionMethod · 0.95
getMaxHeightMethod · 0.80

Tested by

no test coverage detected