aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/polyfrost/chatting/hook
diff options
context:
space:
mode:
authorWyvest <wyvestbusiness@gmail.com>2023-11-23 19:07:22 +0900
committerWyvest <wyvestbusiness@gmail.com>2023-11-23 19:07:22 +0900
commit50dec3baa84ea72f9a711b936aabacf53aa04e05 (patch)
tree1f2840895ebf6934e2c1e9d78cfa3d963910b061 /src/main/java/org/polyfrost/chatting/hook
parent97a700fe1af0360b6deed3c6b0b0a3839d5a690d (diff)
downloadChatting-50dec3baa84ea72f9a711b936aabacf53aa04e05.tar.gz
Chatting-50dec3baa84ea72f9a711b936aabacf53aa04e05.tar.bz2
Chatting-50dec3baa84ea72f9a711b936aabacf53aa04e05.zip
Various chat head bug fixes
- Fix chat heads making chat lines go over chat background - Fix chat heads making tooltip hovers not work properly
Diffstat (limited to 'src/main/java/org/polyfrost/chatting/hook')
-rw-r--r--src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java b/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java
index 50b9ce3..22f180c 100644
--- a/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java
+++ b/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java
@@ -8,8 +8,14 @@ import java.util.HashSet;
public interface ChatLineHook {
HashSet<WeakReference<ChatLine>> chatLines = new HashSet<>();
- boolean hasDetected();
+ boolean isDetected();
+ void setDetected(boolean detected);
NetworkPlayerInfo getPlayerInfo();
+ void setPlayerInfo(NetworkPlayerInfo playerInfo);
+ NetworkPlayerInfo getDetectedPlayerInfo();
+ void setDetectedPlayerInfo(NetworkPlayerInfo detectedPlayerInfo);
+ boolean isFirstDetection();
+ void setFirstDetection(boolean firstDetection);
void updatePlayerInfo();