summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/OutCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/OutCommand.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/OutCommand.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/OutCommand.java b/EssentialsUpdate/src/f00f/net/irc/martyr/OutCommand.java
new file mode 100644
index 000000000..9e25c9ce9
--- /dev/null
+++ b/EssentialsUpdate/src/f00f/net/irc/martyr/OutCommand.java
@@ -0,0 +1,24 @@
+package f00f.net.irc.martyr;
+
+/**
+ * Defines an outgoing command. Outgoing commands are very simple
+ * because all they need to do is be rendered. Outgoing commands do
+ * not change our state.
+ */
+public interface OutCommand extends Command
+{
+
+ /**
+ * Forms a string appropriate to send to the server, if required.
+ * Some commands will have no such string, as they are received and not
+ * sent. The string returned is sent to the server verbatim.
+ *
+ * @return Rendered string
+ */
+ String render();
+
+}
+
+
+
+