mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 18:42:45 +00:00
92 lines
2.0 KiB
Java
92 lines
2.0 KiB
Java
package mineverse.Aust1n46.chat.api;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Set;
|
|
import java.util.UUID;
|
|
|
|
public class SynchronizedMineverseChatPlayer {
|
|
private UUID uuid;
|
|
private Set<String> listening;
|
|
private HashMap<String, Integer> mutes;
|
|
private Set<UUID> ignores;
|
|
private int messagePackets;
|
|
private boolean spy;
|
|
private boolean messageToggle;
|
|
|
|
public SynchronizedMineverseChatPlayer(UUID uuid, Set<String> listening, HashMap<String, Integer> mutes, Set<UUID> ignores, boolean spy, boolean messageToggle) {
|
|
this.uuid = uuid;
|
|
this.listening = listening;
|
|
this.mutes = mutes;
|
|
this.ignores = ignores;
|
|
this.spy = spy;
|
|
this.messageToggle = messageToggle;
|
|
}
|
|
|
|
public int getMessagePackets() {
|
|
return this.messagePackets;
|
|
}
|
|
|
|
public void incrementMessagePackets() {
|
|
this.messagePackets ++;
|
|
}
|
|
|
|
public void clearMessagePackets() {
|
|
this.messagePackets = 0;
|
|
}
|
|
|
|
public void addIgnore(SynchronizedMineverseChatPlayer smcp) {
|
|
this.ignores.add(smcp.getUUID());
|
|
}
|
|
|
|
public void removeIgnore(SynchronizedMineverseChatPlayer smcp) {
|
|
this.ignores.remove(smcp.getUUID());
|
|
}
|
|
|
|
public Set<UUID> getIgnores() {
|
|
return this.ignores;
|
|
}
|
|
|
|
public void addMute(String channel) {
|
|
this.mutes.put(channel, 0);
|
|
}
|
|
|
|
public void removeMute(String channel) {
|
|
this.mutes.remove(channel);
|
|
}
|
|
|
|
public HashMap<String, Integer> getMutes() {
|
|
return this.mutes;
|
|
}
|
|
|
|
public void addListening(String channel) {
|
|
this.listening.add(channel);
|
|
}
|
|
|
|
public void removeListening(String channel) {
|
|
this.listening.remove(channel);
|
|
}
|
|
|
|
public Set<String> getListening() {
|
|
return this.listening;
|
|
}
|
|
|
|
public UUID getUUID() {
|
|
return this.uuid;
|
|
}
|
|
|
|
public boolean isSpy() {
|
|
return this.spy;
|
|
}
|
|
|
|
public void setSpy(boolean spy) {
|
|
this.spy = spy;
|
|
}
|
|
|
|
public boolean getMessageToggle() {
|
|
return this.messageToggle;
|
|
}
|
|
|
|
public void setMessageToggle(boolean messageToggle) {
|
|
this.messageToggle = messageToggle;
|
|
}
|
|
} |