Continued building a system for transferring the complete internal states of our dimensions from the server to the client. However, Steven suggested that clients only need minimal data to operate properly, as opposed to the server. My motivation for this more complicated system was the concern that minimal information wouldn't be enough. I'm going to commit my progress, then tear it down and write a much simpler version.
12 lines
307 B
Java
12 lines
307 B
Java
package StevenDimDoors.mod_pocketDim.messages;
|
|
|
|
import java.io.DataInputStream;
|
|
import java.io.IOException;
|
|
|
|
public interface IMessageBuilder<T>
|
|
{
|
|
public IDataMessage createKey(T target);
|
|
public IDataMessage createMessage(T target);
|
|
public IDataMessage read(DataInputStream source) throws IOException;
|
|
}
|