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

Method getChatField

Minecraft-Utils/1.12.2/src/Variables.java:338–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 }
337
338 private bje getChatField() {
339 bkn chatGUI = (bkn) getMinecraftScreen();
340 bje chatField;
341 if (Transformer.FORGE) {
342 try {
343 chatField = (bje) forgeChatField.get(chatGUI);
344 } catch (Exception e) {
345 throw new RuntimeException(e);
346 }
347 } else {
348 chatField = chatGUI.a;
349 }
350 return chatField;
351 }
352
353 @Override
354 public Object getChatComponentWithPrefix(String prefix, Object originalChatComponent) {

Callers 2

getChatBoxTextMethod · 0.95
typeInChatGUIMethod · 0.95

Calls 2

getMinecraftScreenMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected