aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/woverflow/chatting/hook/GuiNewChatHook.java
blob: d2ca6c13d12069b2f944ae2d3b16af6ff3d5f2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package cc.woverflow.chatting.hook;

import net.minecraft.client.gui.ChatLine;

import java.awt.datatransfer.Transferable;

public interface GuiNewChatHook {
    int getRight();

    boolean isHovering();

    ChatLine getHoveredLine(int mouseY);

    Transferable getChattingChatComponent(int mouseY);

    default ChatLine getFullMessage(ChatLine line) {
        throw new AssertionError("getFullMessage not overridden on GuiNewChat");
    }

    String getPrevText();

    void setPrevText(String prevText);

    int getTextOpacity();
}