package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
public class S14PacketEntity implements Packet
{
protected int field_149074_a;
protected byte field_149072_b;
protected byte field_149073_c;
protected byte field_149070_d;
protected byte field_149071_e;
protected byte field_149068_f;
protected boolean field_179743_g;
protected boolean field_149069_g;
private static final String __OBFID = "CL_00001312";
public S14PacketEntity() {}
public S14PacketEntity(int p_i45206_1_)
{
this.field_149074_a = p_i45206_1_;
}
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer data) throws IOException
{
this.field_149074_a = data.readVarIntFromBuffer();
}
/**
* Writes the raw packet data to the data stream.
*/
public void writePacketData(PacketBuffer data) throws IOException
{
data.writeVarIntToBuffer(this.field_149074_a);
}
/**
* Passes this Packet on to the NetHandler for processing.
*/
public void processPacket(INetHandlerPlayClient handler)
{
handler.handleEntityMovement(this);
}
public String toString()
{
return "Entity_" + super.toString();
}
/**
* Passes this Packet on to the NetHandler for processing.
*/
public void processPacket(INetHandler handler)
{
this.processPacket((INetHandlerPlayClient)handler);
}
public static class S15PacketEntityRelMove extends S14PacketEntity
{
private static final String __OBFID = "CL_00001313";
public S15PacketEntityRelMove() {}
public S15PacketEntityRelMove(int p_i45974_1_, byte p_i45974_2_, byte p_i45974_3_, byte p_i45974_4_, boolean p_i45974_5_)
{
super(p_i45974_1_);
this.field_149072_b = p_i45974_2_;
this.field_149073_c = p_i45974_3_;
this.field_149070_d = p_i45974_4_;
this.field_179743_g = p_i45974_5_;
}
public void readPacketData(PacketBuffer data) throws IOException
{
super.readPacketData(data);
this.field_149072_b = data.readByte();
this.field_149073_c = data.readByte();
this.field_149070_d = data.readByte();
this.field_179743_g = data.readBoolean();
}
public void writePacketData(PacketBuffer data) throws IOException
{
super.writePacketData(data);
data.writeByte(this.field_149072_b);
data.writeByte(this.field_149073_c);
data.writeByte(this.field_149070_d);
data.writeBoolean(this.field_179743_g);
}
public void processPacket(INetHandler handler)
{
super.processPacket((INetHandlerPlayClient)handler);
}
}
public static class S16PacketEntityLook extends S14PacketEntity
{
private static final String __OBFID = "CL_00001315";
public S16PacketEntityLook()
{
this.field_149069_g = true;
}
public S16PacketEntityLook(int p_i45972_1_, byte p_i45972_2_, byte p_i45972_3_, boolean p_i45972_4_)
{
super(p_i45972_1_);
this.field_149071_e = p_i45972_2_;
this.field_149068_f = p_i45972_3_;
this.field_149069_g = true;
this.field_179743_g = p_i45972_4_;
}
public void readPacketData(PacketBuffer data) throws IOException
{
super.readPacketData(data);
this.field_149071_e = data.readByte();
this.field_149068_f = data.readByte();
this.field_179743_g = data.readBoolean();
}
public void writePacketData(PacketBuffer data) throws IOException
{
super.writePacketData(data);
data.writeByte(this.field_149071_e);
data.writeByte(this.field_149068_f);
data.writeBoolean(this.field_179743_g);
}
public void processPacket(INetHandler handler)
{
super.processPacket((INetHandlerPlayClient)handler);
}
}
public static class S17PacketEntityLookMove extends S14PacketEntity
{
private static final String __OBFID = "CL_00001314";
public S17PacketEntityLookMove()
{
this.field_149069_g = true;
}
public S17PacketEntityLookMove(int p_i45973_1_, byte p_i45973_2_, byte p_i45973_3_, byte p_i45973_4_, byte p_i45973_5_, byte p_i45973_6_, boolean p_i45973_7_)
{
super(p_i45973_1_);
this.field_149072_b = p_i45973_2_;
this.field_149073_c = p_i45973_3_;
this.field_149070_d = p_i45973_4_;
this.field_149071_e = p_i45973_5_;
this.field_149068_f = p_i45973_6_;
this.field_179743_g = p_i45973_7_;
this.field_149069_g = true;
}
public void readPacketData(PacketBuffer data) throws IOException
{
super.readPacketData(data);
this.field_149072_b = data.readByte();
this.field_149073_c = data.readByte();
this.field_149070_d = data.readByte();
this.field_149071_e = data.readByte();
this.field_149068_f = data.readByte();
this.field_179743_g = data.readBoolean();
}
public void writePacketData(PacketBuffer data) throws IOException
{
super.writePacketData(data);
data.writeByte(this.field_149072_b);
data.writeByte(this.field_149073_c);
data.writeByte(this.field_149070_d);
data.writeByte(this.field_149071_e);
data.writeByte(this.field_149068_f);
data.writeBoolean(this.field_179743_g);
}
public void processPacket(INetHandler handler)
{
super.processPacket((INetHandlerPlayClient)handler);
}
}
}