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

Method mouseClicked

Minecraft-Utils/1.9/src/Gui2ndChat.java:267–275  ·  view source on GitHub ↗
(int mouseX, int mouseY, int button)

Source from the content-addressed store, hash-verified

265 }
266
267 @Override
268 public boolean mouseClicked(int mouseX, int mouseY, int button) {
269 try {
270 return button == 0 && (clickChatComponent != null ? (Boolean) clickChatComponent.invoke(MinecraftFactory.getVars().getMinecraftScreen(),
271 getChatComponent(Mouse.getX(), Mouse.getY())) : ((bfb) MinecraftFactory.getVars().getMinecraftScreen()).a(getChatComponent(Mouse.getX(), Mouse.getY())));
272 } catch (Exception e) {
273 throw new RuntimeException(e);
274 }
275 }
276
277 @Override
278 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