    001package net.minecraft.network.packet;
    002
    003import java.io.DataInputStream;
    004import java.io.DataOutputStream;
    005import java.io.IOException;
    006
    007public class Packet254ServerPing extends Packet
    008{
    009    public int field_82559_a = 0;
    010
    011    /**
    012     * Abstract. Reads the raw packet data from the data stream.
    013     */
    014    public void readPacketData(DataInputStream par1DataInputStream) throws IOException
    015    {
    016        try
    017        {
    018            this.field_82559_a = par1DataInputStream.readByte();
    019        }
    020        catch (Throwable throwable)
    021        {
    022            this.field_82559_a = 0;
    023        }
    024    }
    025
    026    /**
    027     * Abstract. Writes the raw packet data to the data stream.
    028     */
    029    public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException {}
    030
    031    /**
    032     * Passes this Packet on to the NetHandler for processing.
    033     */
    034    public void processPacket(NetHandler par1NetHandler)
    035    {
    036        par1NetHandler.handleServerPing(this);
    037    }
    038
    039    /**
    040     * Abstract. Return the size of the packet (not counting the header).
    041     */
    042    public int getPacketSize()
    043    {
    044        return 0;
    045    }
    046}