diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-12-11 17:06:21 -0500 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-12-11 17:06:21 -0500 |
commit | 7ea5b9ab24c78f01bdbbd4357fc87b75bbe4d950 (patch) | |
tree | 14eb8e92f7afb0ac65c8cdfed7826d194f8460d0 /src/main/java/cc/woverflow/chatting/hook | |
parent | fc0f54e31911ae375672f04686b072b46afd1419 (diff) | |
download | Chatting-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.java | 15 |
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(); +} |