28 lines
640 B
Java
28 lines
640 B
Java
package tc.oc.commons.bukkit.channels;
|
|
|
|
import javax.annotation.Nullable;
|
|
import org.bukkit.command.CommandSender;
|
|
import tc.oc.api.docs.Chat;
|
|
import tc.oc.api.docs.PlayerId;
|
|
import tc.oc.api.docs.virtual.ChatDoc;
|
|
import tc.oc.commons.core.chat.Audience;
|
|
|
|
/**
|
|
* An {@link Audience} that sends {@link Chat} messages to the API.
|
|
*/
|
|
public interface Channel extends Audience {
|
|
|
|
ChatDoc.Type type();
|
|
|
|
void chat(CommandSender sender, String message);
|
|
|
|
void chat(@Nullable PlayerId playerId, String message);
|
|
|
|
void show(Chat message);
|
|
|
|
boolean sendable(CommandSender sender);
|
|
|
|
boolean viewable(CommandSender sender);
|
|
|
|
}
|