package com.thebuerkle.mcboom.packet;

import com.google.common.base.Objects;
import com.thebuerkle.mcboom.Buffers;

import org.jboss.netty.buffer.ChannelBuffer;

public class ClientStatusPacket extends Packet {

    public static final int ID = CLIENT_STATUS;

    private final int _status;

    public ClientStatusPacket spawn() {
        return new ClientStatusPacket(0);
    }

    public ClientStatusPacket respawn() {
        return new ClientStatusPacket(1);
    }

    private ClientStatusPacket(int status) {
        super(ID);

        _status = status;
    }

    @Override()
    public int size() {
        return 1;
    }

    @Override()
    public void write(ChannelBuffer out) {
        Buffers.mc_byte(out, _status);
    }

    @Override()
    public String toString() {
        return Objects.toStringHelper(this)
            .add("ID", id)
            .add("payload", _status)
            .toString();
    }
}

@@ -290,32 +290,39 @@
 us;%0A%0A    public 
+static 
 ClientStatusPack
@@ -394,16 +394,23 @@
  public 
+static 
 ClientSt

fix compile error