From cc4a11c7943d9036dc71679eaa531832cd2a2f0c Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 1 Jan 2022 22:11:34 +0700 Subject: Chattils 1.0.0 --- .../cc/woverflow/chattils/hook/GuiNewChatHook.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/java/cc/woverflow/chattils/hook/GuiNewChatHook.java (limited to 'src/main/java/cc/woverflow/chattils/hook') diff --git a/src/main/java/cc/woverflow/chattils/hook/GuiNewChatHook.java b/src/main/java/cc/woverflow/chattils/hook/GuiNewChatHook.java new file mode 100644 index 0000000..f84fd43 --- /dev/null +++ b/src/main/java/cc/woverflow/chattils/hook/GuiNewChatHook.java @@ -0,0 +1,23 @@ +package cc.woverflow.chattils.hook; + +import net.minecraft.client.gui.ChatLine; + +import java.awt.datatransfer.Transferable; + +public interface GuiNewChatHook { + int getRight(); + + boolean shouldCopy(); + + Transferable getChattilsChatComponent(int mouseY); + + default ChatLine getFullMessage(ChatLine line) { + throw new AssertionError("getFullMessage not overridden on GuiNewChat"); + } + + String getPrevText(); + + void setPrevText(String prevText); + + int getTextOpacity(); +} -- cgit