mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Major packet work, I think it's done. 34 errors to go!
This commit is contained in:
1 parent
659b963af6
commit
1933723b52
41 files changed
+638
-886
No files matched your search
@@ -1,9 +1,8 @@
|
||||
package mekanism.common;
|
||||
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Implement in your main class if your mod happens to be completely reliant on Mekanism, or in other words, is a Mekanism module.
|
||||
@@ -27,13 +26,13 @@ public interface IModule
|
||||
|
||||
/**
|
||||
* Writes this module's configuration to a ConfigSync packet.
|
||||
* @param dataStream - the DataOutputStream of the sync packet
|
||||
* @param dataStream - the ByteBuf of the sync packet
|
||||
*/
|
||||
public void writeConfig(DataOutputStream dataStream) throws IOException;
|
||||
public void writeConfig(ByteBuf dataStream) throws IOException;
|
||||
|
||||
/**
|
||||
* Reads this module's configuration from the original ConfigSync packet.
|
||||
* @param dataStream - the incoming ByteArrayDataInput of the sync packet
|
||||
* @param dataStream - the incoming ByteBuf of the sync packet
|
||||
*/
|
||||
public void readConfig(ByteArrayDataInput dataStream) throws IOException;
|
||||
public void readConfig(ByteBuf dataStream) throws IOException;
|
||||
}
|
||||
Reference in new issue
Block a user