Skip to content

Commit

Permalink
Make that event optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed May 12, 2019
1 parent 34ccfb5 commit 4bf1f57
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 24 deletions.
Expand Up @@ -13,7 +13,9 @@ public interface MessageOut {
*
* @param client Client sending
*/
void sending(DataClient client) throws Throwable;
default void sending(DataClient client) throws Throwable {

}

/**
* Protocol Version
Expand Down
Expand Up @@ -16,9 +16,4 @@ public interface MessageStreamOut extends MessageOut {
* @param data Data Stream
*/
void send(DataClient client, OutputStream data) throws Throwable;

@Override
default void sending(DataClient client) throws Throwable {

}
}
4 changes: 3 additions & 1 deletion Client/src/net/ME1312/SubData/Client/Protocol/PacketOut.java
Expand Up @@ -12,7 +12,9 @@ public interface PacketOut {
*
* @param client Client sending
*/
void sending(SubDataClient client) throws Throwable;
default void sending(SubDataClient client) throws Throwable {

}

/**
* Protocol Version
Expand Down
Expand Up @@ -16,9 +16,4 @@ public interface PacketStreamOut extends PacketOut {
* @param data Data Stream
*/
void send(SubDataClient client, OutputStream data) throws Throwable;

@Override
default void sending(SubDataClient client) throws Throwable {

}
}
Expand Up @@ -13,7 +13,9 @@ public interface MessageOut {
*
* @param client Client sending
*/
void sending(DataClient client) throws Throwable;
default void sending(DataClient client) throws Throwable {

}

/**
* Protocol Version
Expand Down
Expand Up @@ -16,9 +16,4 @@ public interface MessageStreamOut extends MessageOut {
* @param data Data Stream
*/
void send(DataClient client, OutputStream data) throws Throwable;

@Override
default void sending(DataClient client) throws Throwable {

}
}
4 changes: 3 additions & 1 deletion Server/src/net/ME1312/SubData/Server/Protocol/PacketOut.java
Expand Up @@ -12,7 +12,9 @@ public interface PacketOut {
*
* @param client Client sending
*/
void sending(SubDataClient client) throws Throwable;
default void sending(SubDataClient client) throws Throwable {

}

/**
* Protocol Version
Expand Down
Expand Up @@ -16,9 +16,4 @@ public interface PacketStreamOut extends PacketOut {
* @param data Data Stream
*/
void send(SubDataClient client, OutputStream data) throws Throwable;

@Override
default void sending(SubDataClient client) throws Throwable {

}
}

0 comments on commit 4bf1f57

Please sign in to comment.