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

Method mouseClicked

Minecraft-Utils/1.10/src/Gui2ndChat.java:268–276  ·  view source on GitHub ↗
(int mouseX, int mouseY, int button)

Source from the content-addressed store, hash-verified

266 }
267
268 @Override
269 public boolean mouseClicked(int mouseX, int mouseY, int button) {
270 try {
271 return button == 0 && (clickChatComponent != null ? (Boolean) clickChatComponent.invoke(MinecraftFactory.getVars().getMinecraftScreen(),
272 getChatComponent(Mouse.getX(), Mouse.getY())) : ((bew) MinecraftFactory.getVars().getMinecraftScreen()).a(getChatComponent(Mouse.getX(), Mouse.getY())));
273 } catch (Exception e) {
274 throw new RuntimeException(e);
275 }
276 }
277
278 @Override
279 public void keyTyped(int code) {

Callers

nothing calls this directly

Calls 7

getVarsMethod · 0.95
getChatComponentMethod · 0.95
getXMethod · 0.95
getYMethod · 0.95
getMinecraftScreenMethod · 0.65
invokeMethod · 0.45
aMethod · 0.45

Tested by

no test coverage detected