From 50dec3baa84ea72f9a711b936aabacf53aa04e05 Mon Sep 17 00:00:00 2001 From: Wyvest Date: Thu, 23 Nov 2023 19:07:22 +0900 Subject: Various chat head bug fixes - Fix chat heads making chat lines go over chat background - Fix chat heads making tooltip hovers not work properly --- src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java') 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> 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(); -- cgit