Move PacketHelper methods into DataStreams

This commit is contained in:
mezz committed 2015-06-09 00:23:36 -07:00
1 parent ff97fd8067
commit fa092e2a1b
57 files changed
+459 -508

No files matched your search

@@ -10,12 +10,12 @@
******************************************************************************/
package forestry.mail;
import java.io.DataInputStream;
import java.io.IOException;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import forestry.core.network.DataInputStreamForestry;
import forestry.core.network.IPacketHandler;
import forestry.core.network.PacketId;
import forestry.core.network.PacketString;
@@ -31,7 +31,7 @@ import forestry.mail.network.PacketRequestLetterInfo;
public class PacketHandlerMail implements IPacketHandler {
@Override
public boolean onPacketData(PacketId packetID, DataInputStream data, EntityPlayer player) throws IOException {
public boolean onPacketData(PacketId packetID, DataInputStreamForestry data, EntityPlayer player) throws IOException {
switch (packetID) {
case LETTER_INFO: {