Code example for DataInputStream

Methods: readInt, readShort

0
	/** 
	 * Abstract. Reads the raw packet data from the data stream. 
	 */ 
	@Override 
	public void readPacketData(DataInputStream par1DataInputStream) throws IOException {
		this.entityID = par1DataInputStream.readInt();
		this.slot = par1DataInputStream.readShort();
		this.field_73399_c = readItemStack(par1DataInputStream);
	} 
 
	/** 
	 * Abstract. Writes the raw packet data to the data stream. 
	 */ 
	@Override 
	public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException {
		par1DataOutputStream.writeInt(this.entityID);
		par1DataOutputStream.writeShort(this.slot);
		writeItemStack(this.field_73399_c, par1DataOutputStream);
	} 
 
	/**