package net.minecraft.src;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class Packet11PlayerPosition extends Packet10Flying {
	public Packet11PlayerPosition() {
		this.moving = true;
	}

	/**
	 * Abstract. Reads the raw packet data from the data stream.
	 */
	public void readPacketData(DataInputStream par1DataInputStream) throws IOException {
		this.xPosition = par1DataInputStream.readDouble();
		this.yPosition = par1DataInputStream.readDouble();
		this.stance = par1DataInputStream.readDouble();
		this.zPosition = par1DataInputStream.readDouble();
		super.readPacketData(par1DataInputStream);
	}

	/**
	 * Abstract. Writes the raw packet data to the data stream.
	 */
	public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException {
		par1DataOutputStream.writeDouble(this.xPosition);
		par1DataOutputStream.writeDouble(this.yPosition);
		par1DataOutputStream.writeDouble(this.stance);
		par1DataOutputStream.writeDouble(this.zPosition);
		super.writePacketData(par1DataOutputStream);
	}

	/**
	 * Abstract. Return the size of the packet (not counting the header).
	 */
	public int getPacketSize() {
		return 33;
	}
}
