aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/woverflow/chatting/hook
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-12-11 17:06:21 -0500
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-12-11 17:06:21 -0500
commit7ea5b9ab24c78f01bdbbd4357fc87b75bbe4d950 (patch)
tree14eb8e92f7afb0ac65c8cdfed7826d194f8460d0 /src/main/java/cc/woverflow/chatting/hook
parentfc0f54e31911ae375672f04686b072b46afd1419 (diff)
downloadChatting-7ea5b9ab24c78f01bdbbd4357fc87b75bbe4d950.tar.gz
Chatting-7ea5b9ab24c78f01bdbbd4357fc87b75bbe4d950.tar.bz2
Chatting-7ea5b9ab24c78f01bdbbd4357fc87b75bbe4d950.zip
new: chat heads
Diffstat (limited to 'src/main/java/cc/woverflow/chatting/hook')
-rw-r--r--src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java15
1 files changed, 15 insertions, 0 deletions
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<WeakReference<ChatLine>> chatLines = new HashSet<>();
+ boolean hasDetected();
+ NetworkPlayerInfo getPlayerInfo();
+
+ void updatePlayerInfo();
+}