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

Method getChatField

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

Source from the content-addressed store, hash-verified

349 }
350
351 private cgn getChatField() {
352 civ chatGUI = (civ) getMinecraftScreen();
353 cgn chatField;
354 if (Transformer.FORGE) {
355 try {
356 chatField = (cgn) forgeChatField.get(chatGUI);
357 } catch (Exception e) {
358 throw new RuntimeException(e);
359 }
360 } else {
361 chatField = chatGUI.a;
362 }
363 return chatField;
364 }
365
366 @Override
367 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