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

Method a

Minecraft-Utils/1.13/src/GuiList.java:67–80  ·  view source on GitHub ↗

Element clicked @param id The id of the Row. @param button If the Row has been Double-Clicked. @param mouseX The x-coordinate of the Mouse. @param mouseY The y-coordinate of the Mouse.

(int id, int button, double mouseX, double mouseY)

Source from the content-addressed store, hash-verified

65 * @param mouseY The y-coordinate of the Mouse.
66 */
67 @Override
68 protected boolean a(int id, int button, double mouseX, double mouseY) {
69 selected = id;
70 boolean var5 = (GuiList.this.selected >= 0) && (GuiList.this.selected < d());
71 if (var5) {
72 if (clickable != null) {
73 synchronized (rows) {
74 onSelect(id, rows.get(id), false); // TODO
75 return true;
76 }
77 }
78 }
79 return false;
80 }
81
82 @Override
83 public void onSelect(int id, E row, boolean doubleClick) {

Callers 4

drawScreenMethod · 0.95
mouseClickedMethod · 0.95
setHeaderPaddingMethod · 0.95
mouseDraggedMethod · 0.45

Calls 15

dMethod · 0.95
onSelectMethod · 0.95
isSelectedMethod · 0.95
drawSlotMethod · 0.95
calculateHeightMapMethod · 0.95
fMethod · 0.95
getVarsMethod · 0.95
getLeftMethod · 0.95
getTopMethod · 0.95
getRightMethod · 0.95
getBottomMethod · 0.95

Tested by

no test coverage detected