/*
 * ******************************************************************************
 *  Copyright 2011-2015 CovertJaguar
 *
 *  This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
 * ***************************************************************************
 */

package mods.railcraft.api.core;

import net.minecraft.world.World;

import javax.annotation.Nullable;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public interface INetworkedObject {

    @Nullable
    World theWorld();

    void writePacketData(DataOutputStream data) throws IOException;

    void readPacketData(DataInputStream data) throws IOException;
}

@@ -521,16 +521,71 @@
 edObject
+%3CI extends DataInputStream, O extends DataOutputStream%3E
  %7B%0A%0A    
@@ -630,13 +630,12 @@
 oid 
-write
+read
 Pack
@@ -641,32 +641,17 @@
 ketData(
-DataOutputStream
+I
  data) t
@@ -671,36 +671,37 @@
 tion;%0A%0A    void 
-read
+write
 PacketData(DataI
@@ -695,31 +695,17 @@
 ketData(
-DataInputStream
+O
  data) t
@@ -723,10 +723,11 @@
 eption;%0A
+%0A
 %7D%0A

Add Generics to INetworkedObject