// Path: src/protocolsupportpocketstuff/packet/PEPacket.java
// public abstract class PEPacket {
// 
// 	public abstract int getPacketId();
// 
// 	public abstract void toData(ConnectionImpl connection, ByteBuf serializer);
// 
// 	public abstract void readFromClientData(ConnectionImpl connection, ByteBuf clientdata);
// 	
// 	public ByteBuf encode(ConnectionImpl connection) {
// 		ByteBuf serializer = Unpooled.buffer();
// 		PEPacketEncoder.sWritePacketId(serializer, getPacketId());
// 		toData(connection, serializer);
// 		return serializer;
// 	}
// 
// 	public void decode(ConnectionImpl connection, ByteBuf clientdata) {
// 		readFromClientData(connection, clientdata);
// 	}
// 
// }


import io.netty.buffer.ByteBuf;
import protocolsupport.protocol.ConnectionImpl;
import protocolsupport.protocol.serializer.VarNumberSerializer;
import protocolsupport.protocol.typeremapper.pe.PEPacketIDs;
import protocolsupportpocketstuff.packet.PEPacket;
package protocolsupportpocketstuff.packet.play;


public class EntityDestroyPacket extends PEPacket {

	private long entityId;

	public EntityDestroyPacket() { }

	public EntityDestroyPacket(long entityId) {
		this.entityId = entityId;
	}

	@Override
	public int getPacketId() {
		return PEPacketIDs.ENTITY_DESTROY;
	}

	@Override
	public void toData(ConnectionImpl connection, ByteBuf serializer) {
		VarNumberSerializer.writeSVarLong(serializer, entityId);
	}

	@Override
	public void readFromClientData(ConnectionImpl connection, ByteBuf clientdata) {
// Path: src/protocolsupportpocketstuff/packet/PEPacket.java
// public abstract class PEPacket {
// 
// 	public abstract int getPacketId();
// 
// 	public abstract void toData(ConnectionImpl connection, ByteBuf serializer);
// 
// 	public abstract void readFromClientData(ConnectionImpl connection, ByteBuf clientdata);
// 	
// 	public ByteBuf encode(ConnectionImpl connection) {
// 		ByteBuf serializer = Unpooled.buffer();
// 		PEPacketEncoder.sWritePacketId(serializer, getPacketId());
// 		toData(connection, serializer);
// 		return serializer;
// 	}
// 
// 	public void decode(ConnectionImpl connection, ByteBuf clientdata) {
// 		readFromClientData(connection, clientdata);
// 	}
// 
// }


// Path: src/protocolsupportpocketstuff/packet/play/EntityDestroyPacket.java
import io.netty.buffer.ByteBuf;
import protocolsupport.protocol.ConnectionImpl;
import protocolsupport.protocol.serializer.VarNumberSerializer;
import protocolsupport.protocol.typeremapper.pe.PEPacketIDs;
import protocolsupportpocketstuff.packet.PEPacket;

package protocolsupportpocketstuff.packet.play;


public class EntityDestroyPacket extends PEPacket {

	private long entityId;

	public EntityDestroyPacket() { }

	public EntityDestroyPacket(long entityId) {
		this.entityId = entityId;
	}

	@Override
	public int getPacketId() {
		return PEPacketIDs.ENTITY_DESTROY;
	}

	@Override
	public void toData(ConnectionImpl connection, ByteBuf serializer) {
		VarNumberSerializer.writeSVarLong(serializer, entityId);
	}

	@Override
	public void readFromClientData(ConnectionImpl connection, ByteBuf clientdata) {
		this.entityId = VarNumberSerializer.readSVarLong(clientdata);