-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
169 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
client/src/main/java/com/fox2code/foxloader/client/network/NetClientHandlerExtensions.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
common/src/main/java/com/fox2code/foxloader/network/NetworkConnection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.fox2code.foxloader.network; | ||
|
||
import com.fox2code.foxloader.loader.ModContainer; | ||
|
||
public interface NetworkConnection { | ||
/** | ||
* Send network data to remote player | ||
*/ | ||
default void sendNetworkData(ModContainer modContainer, byte[] data) { throw new RuntimeException(); } | ||
|
||
/** | ||
* Get the network player is available | ||
*/ | ||
default NetworkPlayer getNetworkPlayer() { throw new RuntimeException(); } | ||
|
||
/** | ||
* @return if the remote party has fox loader. | ||
*/ | ||
default boolean hasFoxLoader() { throw new RuntimeException(); } | ||
|
||
/** | ||
* @return if the player is currently connected | ||
*/ | ||
default boolean isConnected() { throw new RuntimeException(); } | ||
|
||
/** | ||
* Will kick the player. | ||
*/ | ||
default void kick(String message) { throw new RuntimeException(); } | ||
} |
Oops, something went wrong.