/*
 * Aeronica's mxTune MOD
 * Copyright 2019, Paul Boese a.k.a. Aeronica
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

package net.aeronica.mods.mxtune.network.server;

import net.aeronica.mods.mxtune.network.AbstractMessage;
import net.aeronica.mods.mxtune.network.MultiPacketSerializedObjectManager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.relauncher.Side;

import java.io.IOException;
import java.util.UUID;

import static net.aeronica.mods.mxtune.network.MultiPacketSerializedObjectManager.SerializedObjectPacket;

public class ByteArrayPartMessage extends AbstractMessage.AbstractServerMessage<ByteArrayPartMessage>
{
    private UUID serialObjectId;
    private long msb;
    private long lsb;

    // part
    private int packetId;
    private byte[] bytes;

    public ByteArrayPartMessage() { /* Required by the packetDispatcher */ }

    public ByteArrayPartMessage(UUID serialObjectId, int packetId, byte[] bytes)
    {
        this.serialObjectId = serialObjectId;
        this.packetId = packetId;
        this.bytes = bytes;
    }

    @Override
    protected void read(PacketBuffer buffer) throws IOException
    {
        msb = buffer.readLong();
        lsb = buffer.readLong();
        serialObjectId = new UUID(msb, lsb);
        // Packet Id and data
        packetId = buffer.readInt();
        bytes = buffer.readByteArray();
    }

    @Override
    protected void write(PacketBuffer buffer) throws IOException
    {
        buffer.writeLong(serialObjectId.getMostSignificantBits());
        buffer.writeLong(serialObjectId.getLeastSignificantBits());
        // Part
        buffer.writeInt(packetId);
        buffer.writeByteArray(bytes);
    }

    @Override
    public void process(EntityPlayer player, Side side)
    {
        MultiPacketSerializedObjectManager.addPacket(new SerializedObjectPacket(serialObjectId, packetId, bytes));
    }
}

@@ -974,36 +974,8 @@
 e;%0A%0A
-import java.io.IOException;%0A
 impo
@@ -1241,52 +1241,8 @@
 tId;
-%0A    private long msb;%0A    private long lsb;
 %0A%0A  
@@ -1642,35 +1642,16 @@
  buffer)
- throws IOException
 %0A    %7B%0A 
@@ -1657,16 +1657,21 @@
         
+long 
 msb = bu
@@ -1695,16 +1695,21 @@
         
+long 
 lsb = bu
@@ -1947,27 +1947,8 @@
 fer)
- throws IOException
 %0A   

Remove the "?sb" fields and declare them as a local variables in the relevant methods. Remove unneeded throws IOException.