package protocolsupport.protocol.packet.middle.clientbound.play;

import io.netty.buffer.ByteBuf;
import protocolsupport.api.ProtocolType;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.middle.ClientBoundMiddlePacket;
import protocolsupport.protocol.serializer.StringSerializer;
import protocolsupport.protocol.serializer.VarNumberSerializer;

public abstract class MiddleWorldSound extends ClientBoundMiddlePacket {

	protected int id;
	protected int category;
	protected String parrotedEntityType;
	protected int x;
	protected int y;
	protected int z;
	protected float volume;
	protected float pitch;

	@Override
	public void readFromServerData(ByteBuf serverdata) {
		category = VarNumberSerializer.readVarInt(serverdata);
		id = VarNumberSerializer.readVarInt(serverdata);
		parrotedEntityType = StringSerializer.readString(serverdata, ProtocolVersion.getLatest(ProtocolType.PC));
		x = serverdata.readInt();
		y = serverdata.readInt();
		z = serverdata.readInt();
		volume = serverdata.readFloat();
		pitch = serverdata.readFloat();
	}

}

@@ -118,200 +118,54 @@
 ort.
-api.ProtocolType;%0Aimport protocolsupport.api.ProtocolVersion;%0Aimport protocolsupport.protocol.packet.middle.ClientBoundMiddlePacket;%0Aimport protocolsupport.protocol.serializer.StringSerializer
+protocol.packet.middle.ClientBoundMiddlePacket
 ;%0Aim
@@ -552,16 +552,67 @@
 data) %7B%0A
+%09%09id = VarNumberSerializer.readVarInt(serverdata);%0A
 %09%09catego
@@ -664,167 +664,8 @@
 a);%0A
-%09%09id = VarNumberSerializer.readVarInt(serverdata);%0A%09%09parrotedEntityType = StringSerializer.readString(serverdata, ProtocolVersion.getLatest(ProtocolType.PC));%0A
 %09%09x 

Update sound changes (mojang rewrted the changes that they done before)