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

Method mouseClicked

Minecraft-Utils/1.11/src/Gui2ndChat.java:258–266  ·  view source on GitHub ↗
(int mouseX, int mouseY, int button)

Source from the content-addressed store, hash-verified

256 }
257
258 @Override
259 public boolean mouseClicked(int mouseX, int mouseY, int button) {
260 try {
261 return button == 0 && (clickChatComponent != null ? (Boolean) clickChatComponent.invoke(MinecraftFactory.getVars().getMinecraftScreen(),
262 getChatComponent(Mouse.getX(), Mouse.getY())) : ((bgp) MinecraftFactory.getVars().getMinecraftScreen()).a(getChatComponent(Mouse.getX(), Mouse.getY())));
263 } catch (Exception e) {
264 throw new RuntimeException(e);
265 }
266 }
267
268 @Override
269 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