Ejemplo n.º 1
0
 public override void Write(PrimitiveWriter writer)
 {
     writer.WriteVarint(EntityId);
     writer.WriteAngleProto(Yaw);
     writer.WriteAngleProto(Pitch);
     writer.WriteBool(OnGround);
 }
Ejemplo n.º 2
0
 public override void Write(PrimitiveWriter writer)
 {
     writer.WriteVarint(EntityId);
     writer.WriteShort((short)((CurrentPos.X * 32 - PreviousPos.X * 32) * 128));
     writer.WriteShort((short)((CurrentPos.Y * 32 - PreviousPos.Y * 32) * 128));
     writer.WriteShort((short)((CurrentPos.Z * 32 - PreviousPos.Z * 32) * 128));
     writer.WriteAngleProto(Yaw);
     writer.WriteAngleProto(Pitch);
     writer.WriteBool(OnGround);
 }
Ejemplo n.º 3
0
 public override void Write(PrimitiveWriter writer)
 {
     writer.WriteVarint(EntityId);
     writer.WriteUuidProto(Uuid);
     writer.WriteDouble(X);
     writer.WriteDouble(Y);
     writer.WriteDouble(Z);
     writer.WriteAngleProto(Yaw);
     writer.WriteAngleProto(Pitch);
     writer.WriteEntityMetadataProto(Metadata);
 }
Ejemplo n.º 4
0
 public override void Write(PrimitiveWriter writer)
 {
     writer.WriteVarint(EntityId);
     writer.WriteUuidProto(Uuid);
     writer.WriteByte(Type);
     writer.WriteDouble(X);
     writer.WriteDouble(Y);
     writer.WriteDouble(Z);
     writer.WriteAngleProto(Pitch);
     writer.WriteAngleProto(Yaw);
     writer.WriteInt(Data);
     writer.WriteShort(VelocityX);
     writer.WriteShort(VelocityY);
     writer.WriteShort(VelocityZ);
 }
Ejemplo n.º 5
0
 public override void Write(PrimitiveWriter writer)
 {
     writer.WriteVarint(EntityId);
     writer.WriteAngleProto(HeadYaw);
 }