Major packet work, I think it's done. 34 errors to go!

This commit is contained in:
Aidan C. Brady committed 2014-06-02 17:33:19 +02:00
1 parent 659b963af6
commit 1933723b52
41 files changed
+638 -886

No files matched your search

+6 -7
View File
@@ -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;
}