Singleplayer shit

This commit is contained in:
Catfoolyou
2025-04-14 12:12:17 -04:00
parent 9646f9d855
commit 2e19341a76
92 changed files with 19099 additions and 19246 deletions

View File

@@ -89,10 +89,9 @@ public class WorkerNetworkManager implements INetworkManager {
//System.out.println("[Server][" + ipcChannel + "]: packet '" + pkt.getClass().getSimpleName() + "' recieved");
try {
pkt.processPacket(theNetHandler); // This is a problem
pkt.processPacket(theNetHandler);
}catch(Throwable t) {
System.out.println("[SP-SERVER]");
System.err.println("Could not process minecraft packet 0x" + Integer.toHexString(pkt.getPacketId()) + " class '" + pkt.getClass().getSimpleName() + "' on channel 'NET|" + ipcChannel + "'");
System.err.println("[SP-SERVER] \"Could not process minecraft packet 0x" + Integer.toHexString(pkt.getPacketId()) + " class '" + pkt.getClass().getSimpleName() + "' on channel 'NET|" + ipcChannel + "'");
t.printStackTrace();
}

View File

@@ -57,7 +57,7 @@ public class NetLoginHandler extends NetHandler {
}
if (this.loginTimer++ == 600 && finishedProcessing == false) {
//this.kickUser("Took too long to log in");
this.kickUser("Took too long to log in");
} else {
this.myTCPConnection.processReadPackets(); // problem
}

View File

@@ -138,7 +138,7 @@ public abstract class Packet
/**
* Read a packet, prefixed by its ID, from the data stream.
*/
public static Packet readPacket(ILogAgent par0ILogAgent, DataInput par1DataInput, boolean par2, Socket par3Socket) throws IOException
public static Packet readPacket(ILogAgent par0ILogAgent, DataInputStream par1DataInput, boolean par2, Socket par3Socket) throws IOException
{
boolean var4 = false;
Packet var5 = null;
@@ -217,7 +217,7 @@ public abstract class Packet
/**
* Writes a packet, prefixed by its ID, to the data stream.
*/
public static void writePacket(Packet par0Packet, DataOutput par1DataOutput) throws IOException
public static void writePacket(Packet par0Packet, DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.write(par0Packet.getPacketId());
par0Packet.writePacketData(par1DataOutput);
@@ -272,12 +272,12 @@ public abstract class Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public abstract void readPacketData(DataInput var1) throws IOException;
public abstract void readPacketData(DataInputStream var1) throws IOException;
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public abstract void writePacketData(DataOutput var1) throws IOException;
public abstract void writePacketData(DataOutputStream var1) throws IOException;
/**
* Passes this Packet on to the NetHandler for processing.

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet0KeepAlive extends Packet
{
@@ -26,7 +24,7 @@ public class Packet0KeepAlive extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.randomId = par1DataInput.readInt();
}
@@ -34,7 +32,7 @@ public class Packet0KeepAlive extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.randomId);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet100OpenWindow extends Packet
{
@@ -46,7 +44,7 @@ public class Packet100OpenWindow extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte() & 255;
this.inventoryType = par1DataInput.readByte() & 255;
@@ -63,7 +61,7 @@ public class Packet100OpenWindow extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId & 255);
par1DataOutput.writeByte(this.inventoryType & 255);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet101CloseWindow extends Packet
{
@@ -26,7 +24,7 @@ public class Packet101CloseWindow extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte();
}
@@ -34,7 +32,7 @@ public class Packet101CloseWindow extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet102WindowClick extends Packet
{
@@ -45,7 +43,7 @@ public class Packet102WindowClick extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.window_Id = par1DataInput.readByte();
this.inventorySlot = par1DataInput.readShort();
@@ -58,7 +56,7 @@ public class Packet102WindowClick extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.window_Id);
par1DataOutput.writeShort(this.inventorySlot);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet103SetSlot extends Packet
{
@@ -35,7 +33,7 @@ public class Packet103SetSlot extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte();
this.itemSlot = par1DataInput.readShort();
@@ -45,7 +43,7 @@ public class Packet103SetSlot extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId);
par1DataOutput.writeShort(this.itemSlot);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.List;
public class Packet104WindowItems extends Packet
@@ -32,7 +30,7 @@ public class Packet104WindowItems extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte();
short var2 = par1DataInput.readShort();
@@ -47,7 +45,7 @@ public class Packet104WindowItems extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId);
par1DataOutput.writeShort(this.itemStack.length);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet105UpdateProgressbar extends Packet
{
@@ -41,7 +39,7 @@ public class Packet105UpdateProgressbar extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte();
this.progressBar = par1DataInput.readShort();
@@ -51,7 +49,7 @@ public class Packet105UpdateProgressbar extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId);
par1DataOutput.writeShort(this.progressBar);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet106Transaction extends Packet
{
@@ -31,7 +29,7 @@ public class Packet106Transaction extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte();
this.shortWindowId = par1DataInput.readShort();
@@ -41,7 +39,7 @@ public class Packet106Transaction extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId);
par1DataOutput.writeShort(this.shortWindowId);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet107CreativeSetSlot extends Packet
{
@@ -28,7 +26,7 @@ public class Packet107CreativeSetSlot extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.slot = par1DataInput.readShort();
this.itemStack = readItemStack(par1DataInput);
@@ -37,7 +35,7 @@ public class Packet107CreativeSetSlot extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeShort(this.slot);
writeItemStack(this.itemStack, par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet108EnchantItem extends Packet
{
@@ -32,7 +30,7 @@ public class Packet108EnchantItem extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.windowId = par1DataInput.readByte();
this.enchantment = par1DataInput.readByte();
@@ -41,7 +39,7 @@ public class Packet108EnchantItem extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.windowId);
par1DataOutput.writeByte(this.enchantment);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet10Flying extends Packet
{
@@ -51,7 +49,7 @@ public class Packet10Flying extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.onGround = par1DataInput.readUnsignedByte() != 0;
}
@@ -59,7 +57,7 @@ public class Packet10Flying extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.write(this.onGround ? 1 : 0);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet11PlayerPosition extends Packet10Flying
{
@@ -24,7 +22,7 @@ public class Packet11PlayerPosition extends Packet10Flying
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readDouble();
this.yPosition = par1DataInput.readDouble();
@@ -36,7 +34,7 @@ public class Packet11PlayerPosition extends Packet10Flying
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeDouble(this.xPosition);
par1DataOutput.writeDouble(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet12PlayerLook extends Packet10Flying
{
@@ -22,7 +20,7 @@ public class Packet12PlayerLook extends Packet10Flying
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.yaw = par1DataInput.readFloat();
this.pitch = par1DataInput.readFloat();
@@ -32,7 +30,7 @@ public class Packet12PlayerLook extends Packet10Flying
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeFloat(this.yaw);
par1DataOutput.writeFloat(this.pitch);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet130UpdateSign extends Packet
{
@@ -28,7 +26,7 @@ public class Packet130UpdateSign extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readInt();
this.yPosition = par1DataInput.readShort();
@@ -44,7 +42,7 @@ public class Packet130UpdateSign extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xPosition);
par1DataOutput.writeShort(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet131MapData extends Packet
{
@@ -34,7 +32,7 @@ public class Packet131MapData extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.itemID = par1DataInput.readShort();
this.uniqueID = par1DataInput.readShort();
@@ -45,7 +43,7 @@ public class Packet131MapData extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeShort(this.itemID);
par1DataOutput.writeShort(this.uniqueID);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet132TileEntityData extends Packet
{
@@ -41,7 +39,7 @@ public class Packet132TileEntityData extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readInt();
this.yPosition = par1DataInput.readShort();
@@ -53,7 +51,7 @@ public class Packet132TileEntityData extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xPosition);
par1DataOutput.writeShort(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet133TileEditorOpen extends Packet
{
@@ -32,7 +30,7 @@ public class Packet133TileEditorOpen extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.field_142037_a = par1DataInput.readByte();
this.field_142035_b = par1DataInput.readInt();
@@ -43,7 +41,7 @@ public class Packet133TileEditorOpen extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.field_142037_a);
par1DataOutput.writeInt(this.field_142035_b);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet13PlayerLookMove extends Packet10Flying
{
@@ -28,7 +26,7 @@ public class Packet13PlayerLookMove extends Packet10Flying
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readDouble();
this.yPosition = par1DataInput.readDouble();
@@ -42,7 +40,7 @@ public class Packet13PlayerLookMove extends Packet10Flying
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeDouble(this.xPosition);
par1DataOutput.writeDouble(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet14BlockDig extends Packet
{
@@ -35,7 +33,7 @@ public class Packet14BlockDig extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.status = par1DataInput.readUnsignedByte();
this.xPosition = par1DataInput.readInt();
@@ -47,7 +45,7 @@ public class Packet14BlockDig extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.write(this.status);
par1DataOutput.writeInt(this.xPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet15Place extends Packet
{
@@ -40,7 +38,7 @@ public class Packet15Place extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readInt();
this.yPosition = par1DataInput.readUnsignedByte();
@@ -55,7 +53,7 @@ public class Packet15Place extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xPosition);
par1DataOutput.write(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet16BlockItemSwitch extends Packet
{
@@ -19,7 +17,7 @@ public class Packet16BlockItemSwitch extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.id = par1DataInput.readShort();
}
@@ -27,7 +25,7 @@ public class Packet16BlockItemSwitch extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeShort(this.id);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet17Sleep extends Packet
{
@@ -26,7 +24,7 @@ public class Packet17Sleep extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityID = par1DataInput.readInt();
this.field_73622_e = par1DataInput.readByte();
@@ -38,7 +36,7 @@ public class Packet17Sleep extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityID);
par1DataOutput.writeByte(this.field_73622_e);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet18Animation extends Packet
{
@@ -21,7 +19,7 @@ public class Packet18Animation extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.animate = par1DataInput.readByte();
@@ -30,7 +28,7 @@ public class Packet18Animation extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.animate);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet19EntityAction extends Packet
{
@@ -33,7 +31,7 @@ public class Packet19EntityAction extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.action = par1DataInput.readByte();
@@ -43,7 +41,7 @@ public class Packet19EntityAction extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.action);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet1Login extends Packet
{
@@ -41,7 +39,7 @@ public class Packet1Login extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.clientEntityId = par1DataInput.readInt();
String var2 = readString(par1DataInput, 16);
@@ -65,7 +63,7 @@ public class Packet1Login extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.clientEntityId);
writeString(this.terrainType == null ? "" : this.terrainType.getWorldTypeName(), par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet200Statistic extends Packet
{
@@ -28,7 +26,7 @@ public class Packet200Statistic extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.statisticId = par1DataInput.readInt();
this.amount = par1DataInput.readInt();
@@ -37,7 +35,7 @@ public class Packet200Statistic extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.statisticId);
par1DataOutput.writeInt(this.amount);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet201PlayerInfo extends Packet
{
@@ -25,7 +23,7 @@ public class Packet201PlayerInfo extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.playerName = readString(par1DataInput, 16);
this.isConnected = par1DataInput.readByte() != 0;
@@ -35,7 +33,7 @@ public class Packet201PlayerInfo extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.playerName, par1DataOutput);
par1DataOutput.writeByte(this.isConnected ? 1 : 0);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet202PlayerAbilities extends Packet
{
@@ -37,7 +35,7 @@ public class Packet202PlayerAbilities extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
byte var2 = par1DataInput.readByte();
this.setDisableDamage((var2 & 1) > 0);
@@ -51,7 +49,7 @@ public class Packet202PlayerAbilities extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
byte var2 = 0;

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet203AutoComplete extends Packet
{
@@ -22,7 +20,7 @@ public class Packet203AutoComplete extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.text = readString(par1DataInput, 32767);
}
@@ -30,7 +28,7 @@ public class Packet203AutoComplete extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.text, par1DataOutput);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet204ClientInfo extends Packet
{
@@ -28,7 +26,7 @@ public class Packet204ClientInfo extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.language = readString(par1DataInput, 7);
this.renderDistance = par1DataInput.readByte();
@@ -42,7 +40,7 @@ public class Packet204ClientInfo extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.language, par1DataOutput);
par1DataOutput.writeByte(this.renderDistance);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet205ClientCommand extends Packet
{
@@ -21,7 +19,7 @@ public class Packet205ClientCommand extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.forceRespawn = par1DataInput.readByte();
}
@@ -29,7 +27,7 @@ public class Packet205ClientCommand extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.forceRespawn & 255);
}
@@ -39,6 +37,7 @@ public class Packet205ClientCommand extends Packet
*/
public void processPacket(NetHandler par1NetHandler)
{
System.out.println("attempting to handle client command");
par1NetHandler.handleClientCommand(this);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet206SetObjective extends Packet
{
@@ -26,7 +24,7 @@ public class Packet206SetObjective extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.objectiveName = readString(par1DataInput, 16);
this.objectiveDisplayName = readString(par1DataInput, 32);
@@ -36,7 +34,7 @@ public class Packet206SetObjective extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.objectiveName, par1DataOutput);
writeString(this.objectiveDisplayName, par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet207SetScore extends Packet
{
@@ -43,7 +41,7 @@ public class Packet207SetScore extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.itemName = readString(par1DataInput, 16);
this.updateOrRemove = par1DataInput.readByte();
@@ -58,7 +56,7 @@ public class Packet207SetScore extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.itemName, par1DataOutput);
par1DataOutput.writeByte(this.updateOrRemove);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet208SetDisplayObjective extends Packet
{
@@ -31,7 +29,7 @@ public class Packet208SetDisplayObjective extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.scoreboardPosition = par1DataInput.readByte();
this.scoreName = readString(par1DataInput, 16);
@@ -40,7 +38,7 @@ public class Packet208SetDisplayObjective extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.scoreboardPosition);
writeString(this.scoreName, par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@@ -79,7 +77,7 @@ public class Packet209SetPlayerTeam extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.teamName = readString(par1DataInput, 16);
this.mode = par1DataInput.readByte();
@@ -106,7 +104,7 @@ public class Packet209SetPlayerTeam extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.teamName, par1DataOutput);
par1DataOutput.writeByte(this.mode);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.List;
public class Packet20NamedEntitySpawn extends Packet
@@ -52,7 +50,7 @@ public class Packet20NamedEntitySpawn extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.name = readString(par1DataInput, 16);
@@ -68,7 +66,7 @@ public class Packet20NamedEntitySpawn extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
writeString(this.name, par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet22Collect extends Packet
{
@@ -23,7 +21,7 @@ public class Packet22Collect extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.collectedEntityId = par1DataInput.readInt();
this.collectorEntityId = par1DataInput.readInt();
@@ -32,7 +30,7 @@ public class Packet22Collect extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.collectedEntityId);
par1DataOutput.writeInt(this.collectorEntityId);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet23VehicleSpawn extends Packet
{
@@ -109,7 +107,7 @@ public class Packet23VehicleSpawn extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.type = par1DataInput.readByte();
@@ -131,7 +129,7 @@ public class Packet23VehicleSpawn extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.type);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.List;
public class Packet24MobSpawn extends Packet
@@ -94,7 +92,7 @@ public class Packet24MobSpawn extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.type = par1DataInput.readByte() & 255;
@@ -113,7 +111,7 @@ public class Packet24MobSpawn extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.type & 255);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet250CustomPayload extends Packet
{
@@ -36,7 +34,7 @@ public class Packet250CustomPayload extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.channel = readString(par1DataInput, 20);
this.length = par1DataInput.readShort();
@@ -51,7 +49,7 @@ public class Packet250CustomPayload extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.channel, par1DataOutput);
par1DataOutput.writeShort((short)this.length);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet252SharedKey extends Packet
{
@@ -16,7 +14,7 @@ public class Packet252SharedKey extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.sharedSecret = readBytesFromStream(par1DataInput);
this.verifyToken = readBytesFromStream(par1DataInput);
@@ -25,7 +23,7 @@ public class Packet252SharedKey extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeByteArray(par1DataOutput, this.sharedSecret);
writeByteArray(par1DataOutput, this.verifyToken);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet254ServerPing extends Packet
{
@@ -25,7 +23,7 @@ public class Packet254ServerPing extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
try
{
@@ -59,7 +57,7 @@ public class Packet254ServerPing extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(1);
par1DataOutput.writeByte(field_140051_d);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet255KickDisconnect extends Packet
{
@@ -19,7 +17,7 @@ public class Packet255KickDisconnect extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.reason = readString(par1DataInput, 256);
}
@@ -27,7 +25,7 @@ public class Packet255KickDisconnect extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.reason, par1DataOutput);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet25EntityPainting extends Packet
{
@@ -28,7 +26,7 @@ public class Packet25EntityPainting extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.title = readString(par1DataInput, EnumArt.maxArtTitleLength);
@@ -41,7 +39,7 @@ public class Packet25EntityPainting extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
writeString(this.title, par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet26EntityExpOrb extends Packet
{
@@ -29,7 +27,7 @@ public class Packet26EntityExpOrb extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.posX = par1DataInput.readInt();
@@ -41,7 +39,7 @@ public class Packet26EntityExpOrb extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeInt(this.posX);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet27PlayerInput extends Packet
{
@@ -24,7 +22,7 @@ public class Packet27PlayerInput extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.field_111017_a = par1DataInput.readFloat();
this.field_111015_b = par1DataInput.readFloat();
@@ -35,7 +33,7 @@ public class Packet27PlayerInput extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeFloat(this.field_111017_a);
par1DataOutput.writeFloat(this.field_111015_b);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet28EntityVelocity extends Packet
{
@@ -61,7 +59,7 @@ public class Packet28EntityVelocity extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.motionX = par1DataInput.readShort();
@@ -72,7 +70,7 @@ public class Packet28EntityVelocity extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeShort(this.motionX);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet29DestroyEntity extends Packet
{
@@ -19,7 +17,7 @@ public class Packet29DestroyEntity extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = new int[par1DataInput.readByte()];
@@ -32,7 +30,7 @@ public class Packet29DestroyEntity extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.entityId.length);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet2ClientProtocol extends Packet {
private int protocolVersion;
@@ -22,7 +20,7 @@ public class Packet2ClientProtocol extends Packet {
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInputStream) throws IOException {
public void readPacketData(DataInputStream par1DataInputStream) throws IOException {
this.protocolVersion = par1DataInputStream.readByte();
this.username = readString(par1DataInputStream, 16);
this.serverHost = readString(par1DataInputStream, 255);
@@ -32,7 +30,7 @@ public class Packet2ClientProtocol extends Packet {
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutputStream) throws IOException {
public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException {
par1DataOutputStream.writeByte(this.protocolVersion);
writeString(this.username, par1DataOutputStream);
writeString(this.serverHost, par1DataOutputStream);
@@ -43,6 +41,7 @@ public class Packet2ClientProtocol extends Packet {
* Passes this Packet on to the NetHandler for processing.
*/
public void processPacket(NetHandler par1NetHandler) {
System.out.println("handling client protocol");
par1NetHandler.handleClientProtocol(this);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet30Entity extends Packet
{
@@ -37,7 +35,7 @@ public class Packet30Entity extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
}
@@ -45,7 +43,7 @@ public class Packet30Entity extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet31RelEntityMove extends Packet30Entity
{
@@ -19,7 +17,7 @@ public class Packet31RelEntityMove extends Packet30Entity
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
super.readPacketData(par1DataInput);
this.xPosition = par1DataInput.readByte();
@@ -30,7 +28,7 @@ public class Packet31RelEntityMove extends Packet30Entity
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
super.writePacketData(par1DataOutput);
par1DataOutput.writeByte(this.xPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet32EntityLook extends Packet30Entity
{
@@ -22,7 +20,7 @@ public class Packet32EntityLook extends Packet30Entity
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
super.readPacketData(par1DataInput);
this.yaw = par1DataInput.readByte();
@@ -32,7 +30,7 @@ public class Packet32EntityLook extends Packet30Entity
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
super.writePacketData(par1DataOutput);
par1DataOutput.writeByte(this.yaw);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet33RelEntityMoveLook extends Packet30Entity
{
@@ -25,7 +23,7 @@ public class Packet33RelEntityMoveLook extends Packet30Entity
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
super.readPacketData(par1DataInput);
this.xPosition = par1DataInput.readByte();
@@ -38,7 +36,7 @@ public class Packet33RelEntityMoveLook extends Packet30Entity
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
super.writePacketData(par1DataOutput);
par1DataOutput.writeByte(this.xPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet34EntityTeleport extends Packet
{
@@ -49,7 +47,7 @@ public class Packet34EntityTeleport extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.xPosition = par1DataInput.readInt();
@@ -62,7 +60,7 @@ public class Packet34EntityTeleport extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeInt(this.xPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet35EntityHeadRotation extends Packet
{
@@ -20,7 +18,7 @@ public class Packet35EntityHeadRotation extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.headRotationYaw = par1DataInput.readByte();
@@ -29,7 +27,7 @@ public class Packet35EntityHeadRotation extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.headRotationYaw);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet38EntityStatus extends Packet
{
@@ -22,7 +20,7 @@ public class Packet38EntityStatus extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.entityStatus = par1DataInput.readByte();
@@ -31,7 +29,7 @@ public class Packet38EntityStatus extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.entityStatus);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet39AttachEntity extends Packet
{
@@ -31,7 +29,7 @@ public class Packet39AttachEntity extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.ridingEntityId = par1DataInput.readInt();
this.vehicleEntityId = par1DataInput.readInt();
@@ -41,7 +39,7 @@ public class Packet39AttachEntity extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.ridingEntityId);
par1DataOutput.writeInt(this.vehicleEntityId);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet3Chat extends Packet
{
@@ -32,7 +30,7 @@ public class Packet3Chat extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.message = readString(par1DataInput, 32767);
}
@@ -40,7 +38,7 @@ public class Packet3Chat extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.message, par1DataOutput);
}

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.List;
public class Packet40EntityMetadata extends Packet
@@ -29,7 +27,7 @@ public class Packet40EntityMetadata extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.metadata = DataWatcher.readWatchableObjects(par1DataInput);
@@ -38,7 +36,7 @@ public class Packet40EntityMetadata extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
DataWatcher.writeObjectsInListToStream(this.metadata, par1DataOutput);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet41EntityEffect extends Packet
{
@@ -34,7 +32,7 @@ public class Packet41EntityEffect extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.effectId = par1DataInput.readByte();
@@ -45,7 +43,7 @@ public class Packet41EntityEffect extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.effectId);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet42RemoveEntityEffect extends Packet
{
@@ -23,7 +21,7 @@ public class Packet42RemoveEntityEffect extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.effectId = par1DataInput.readByte();
@@ -32,7 +30,7 @@ public class Packet42RemoveEntityEffect extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeByte(this.effectId);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet43Experience extends Packet
{
@@ -27,7 +25,7 @@ public class Packet43Experience extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.experience = par1DataInput.readFloat();
this.experienceLevel = par1DataInput.readShort();
@@ -37,7 +35,7 @@ public class Packet43Experience extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeFloat(this.experience);
par1DataOutput.writeShort(this.experienceLevel);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@@ -31,7 +29,7 @@ public class Packet44UpdateAttributes extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.field_111005_a = par1DataInput.readInt();
int var2 = par1DataInput.readInt();
@@ -56,7 +54,7 @@ public class Packet44UpdateAttributes extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.field_111005_a);
par1DataOutput.writeInt(this.field_111004_b.size());

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet4UpdateTime extends Packet
{
@@ -33,7 +31,7 @@ public class Packet4UpdateTime extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.worldAge = par1DataInput.readLong();
this.time = par1DataInput.readLong();
@@ -42,7 +40,7 @@ public class Packet4UpdateTime extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeLong(this.worldAge);
par1DataOutput.writeLong(this.time);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.zip.DataFormatException;
import java.util.zip.Deflater;
import java.util.zip.Inflater;
@@ -75,7 +73,7 @@ public class Packet51MapChunk extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xCh = par1DataInput.readInt();
this.zCh = par1DataInput.readInt();
@@ -126,7 +124,7 @@ public class Packet51MapChunk extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xCh);
par1DataOutput.writeInt(this.zCh);

View File

@@ -1,10 +1,6 @@
package net.minecraft.src;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.*;
public class Packet52MultiBlockChange extends Packet
{
@@ -78,7 +74,7 @@ public class Packet52MultiBlockChange extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readInt();
this.zPosition = par1DataInput.readInt();
@@ -95,7 +91,7 @@ public class Packet52MultiBlockChange extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xPosition);
par1DataOutput.writeInt(this.zPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet53BlockChange extends Packet
{
@@ -39,7 +37,7 @@ public class Packet53BlockChange extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readInt();
this.yPosition = par1DataInput.readUnsignedByte();
@@ -51,7 +49,7 @@ public class Packet53BlockChange extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xPosition);
par1DataOutput.write(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet54PlayNoteBlock extends Packet
{
@@ -36,7 +34,7 @@ public class Packet54PlayNoteBlock extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xLocation = par1DataInput.readInt();
this.yLocation = par1DataInput.readShort();
@@ -49,7 +47,7 @@ public class Packet54PlayNoteBlock extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xLocation);
par1DataOutput.writeShort(this.yLocation);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet55BlockDestroy extends Packet
{
@@ -35,7 +33,7 @@ public class Packet55BlockDestroy extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityId = par1DataInput.readInt();
this.posX = par1DataInput.readInt();
@@ -47,7 +45,7 @@ public class Packet55BlockDestroy extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityId);
par1DataOutput.writeInt(this.posX);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.List;
import java.util.zip.DataFormatException;
import java.util.zip.Deflater;
@@ -81,7 +79,7 @@ public class Packet56MapChunks extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
short var2 = par1DataInput.readShort();
this.dataLength = par1DataInput.readInt();
@@ -150,7 +148,7 @@ public class Packet56MapChunks extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeShort(this.chunkPostX.length);
par1DataOutput.writeInt(this.dataLength);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet5PlayerInventory extends Packet
{
@@ -27,7 +25,7 @@ public class Packet5PlayerInventory extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityID = par1DataInput.readInt();
this.slot = par1DataInput.readShort();
@@ -37,7 +35,7 @@ public class Packet5PlayerInventory extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityID);
par1DataOutput.writeShort(this.slot);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -45,7 +43,7 @@ public class Packet60Explosion extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.explosionX = par1DataInput.readDouble();
this.explosionY = par1DataInput.readDouble();
@@ -73,7 +71,7 @@ public class Packet60Explosion extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeDouble(this.explosionX);
par1DataOutput.writeDouble(this.explosionY);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet61DoorChange extends Packet
{
@@ -28,7 +26,7 @@ public class Packet61DoorChange extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.sfxID = par1DataInput.readInt();
this.posX = par1DataInput.readInt();
@@ -41,7 +39,7 @@ public class Packet61DoorChange extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.sfxID);
par1DataOutput.writeInt(this.posX);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet62LevelSound extends Packet
{
@@ -49,7 +47,7 @@ public class Packet62LevelSound extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.soundName = readString(par1DataInput, 256);
this.effectX = par1DataInput.readInt();
@@ -62,7 +60,7 @@ public class Packet62LevelSound extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.soundName, par1DataOutput);
par1DataOutput.writeInt(this.effectX);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet63WorldParticles extends Packet
{
@@ -44,7 +42,7 @@ public class Packet63WorldParticles extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.particleName = readString(par1DataInput, 64);
this.posX = par1DataInput.readFloat();
@@ -60,7 +58,7 @@ public class Packet63WorldParticles extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
writeString(this.particleName, par1DataOutput);
par1DataOutput.writeFloat(this.posX);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet6SpawnPosition extends Packet
{
@@ -27,7 +25,7 @@ public class Packet6SpawnPosition extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.xPosition = par1DataInput.readInt();
this.yPosition = par1DataInput.readInt();
@@ -37,7 +35,7 @@ public class Packet6SpawnPosition extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.xPosition);
par1DataOutput.writeInt(this.yPosition);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet70GameEvent extends Packet
{
@@ -30,7 +28,7 @@ public class Packet70GameEvent extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.eventType = par1DataInput.readByte();
this.gameMode = par1DataInput.readByte();
@@ -39,7 +37,7 @@ public class Packet70GameEvent extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeByte(this.eventType);
par1DataOutput.writeByte(this.gameMode);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet71Weather extends Packet
{
@@ -30,7 +28,7 @@ public class Packet71Weather extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.entityID = par1DataInput.readInt();
this.isLightningBolt = par1DataInput.readByte();
@@ -42,7 +40,7 @@ public class Packet71Weather extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.entityID);
par1DataOutput.writeByte(this.isLightningBolt);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet7UseEntity extends Packet
{
@@ -29,7 +27,7 @@ public class Packet7UseEntity extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.playerEntityId = par1DataInput.readInt();
this.targetEntity = par1DataInput.readInt();
@@ -39,7 +37,7 @@ public class Packet7UseEntity extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.playerEntityId);
par1DataOutput.writeInt(this.targetEntity);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet8UpdateHealth extends Packet
{
@@ -27,7 +25,7 @@ public class Packet8UpdateHealth extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.healthMP = par1DataInput.readFloat();
this.food = par1DataInput.readShort();
@@ -37,7 +35,7 @@ public class Packet8UpdateHealth extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeFloat(this.healthMP);
par1DataOutput.writeShort(this.food);

View File

@@ -1,8 +1,6 @@
package net.minecraft.src;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.*;
public class Packet9Respawn extends Packet
{
@@ -40,7 +38,7 @@ public class Packet9Respawn extends Packet
/**
* Abstract. Reads the raw packet data from the data stream.
*/
public void readPacketData(DataInput par1DataInput) throws IOException
public void readPacketData(DataInputStream par1DataInput) throws IOException
{
this.respawnDimension = par1DataInput.readInt();
this.difficulty = par1DataInput.readByte();
@@ -58,7 +56,7 @@ public class Packet9Respawn extends Packet
/**
* Abstract. Writes the raw packet data to the data stream.
*/
public void writePacketData(DataOutput par1DataOutput) throws IOException
public void writePacketData(DataOutputStream par1DataOutput) throws IOException
{
par1DataOutput.writeInt(this.respawnDimension);
par1DataOutput.writeByte(this.difficulty);