From 7ea5b9ab24c78f01bdbbd4357fc87b75bbe4d950 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sun, 11 Dec 2022 17:06:21 -0500 Subject: new: chat heads --- .../java/cc/woverflow/chatting/hook/ChatLineHook.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java (limited to 'src/main/java/cc/woverflow/chatting/hook') diff --git a/src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java b/src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java new file mode 100644 index 0000000..fb10225 --- /dev/null +++ b/src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java @@ -0,0 +1,15 @@ +package cc.woverflow.chatting.hook; + +import net.minecraft.client.gui.ChatLine; +import net.minecraft.client.network.NetworkPlayerInfo; + +import java.lang.ref.WeakReference; +import java.util.HashSet; + +public interface ChatLineHook { + HashSet> chatLines = new HashSet<>(); + boolean hasDetected(); + NetworkPlayerInfo getPlayerInfo(); + + void updatePlayerInfo(); +} -- cgit