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

Method mouseClicked

Minecraft-Utils/1.8/src/Gui2ndChat.java:254–262  ·  view source on GitHub ↗
(int mouseX, int mouseY, int button)

Source from the content-addressed store, hash-verified

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