aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java
blob: 22f180c638c3b733ebf21516a39b95ac78caada6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.polyfrost.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 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();

    long getUniqueId();
}