001    package net.minecraft.network.packet;
002    
003    import java.io.DataInputStream;
004    import java.io.DataOutputStream;
005    import java.io.IOException;
006    
007    public class Packet32EntityLook extends Packet30Entity
008    {
009        public Packet32EntityLook()
010        {
011            this.rotating = true;
012        }
013    
014        public Packet32EntityLook(int par1, byte par2, byte par3)
015        {
016            super(par1);
017            this.yaw = par2;
018            this.pitch = par3;
019            this.rotating = true;
020        }
021    
022        /**
023         * Abstract. Reads the raw packet data from the data stream.
024         */
025        public void readPacketData(DataInputStream par1DataInputStream) throws IOException
026        {
027            super.readPacketData(par1DataInputStream);
028            this.yaw = par1DataInputStream.readByte();
029            this.pitch = par1DataInputStream.readByte();
030        }
031    
032        /**
033         * Abstract. Writes the raw packet data to the data stream.
034         */
035        public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException
036        {
037            super.writePacketData(par1DataOutputStream);
038            par1DataOutputStream.writeByte(this.yaw);
039            par1DataOutputStream.writeByte(this.pitch);
040        }
041    
042        /**
043         * Abstract. Return the size of the packet (not counting the header).
044         */
045        public int getPacketSize()
046        {
047            return 6;
048        }
049    }